mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
487a3fb991
Summary: The megarepo generator now adds new directories and files automatically. We now pick folders and paths randomly, with a configurable number of subdirectories and a configurable length for the leaf filename, and a fixed alphabet. The array of directories and leaf filenames are prorated: they start out constrained and grow as we approach our desired number of commits to generate (`repogenerator.numcommits`), so as not to be too sparse initially. The directory array is randomized initially, so the above proration doesn't lead to a trivial edit pattern (e.g. everything in a/* initially.) Lastly, we now stop generation when we hit our goal. Reviewed By: quark-zju Differential Revision: D7572968 fbshipit-source-id: b60d60b6262962ee114cb19b0989e6a1af8c0549 |
||
---|---|---|
.. | ||
__init__.py |