mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
7227563c61
Summary: This adds a --incremental flag to the hg repack command. This flag causes repack to look at the distribution of pack files in the repo and performs the most minimal repack to keep the repo in good shape. Currently it's only implemented for datapacks. The new remotefilelog.datagenerations config contains a list of the sizes for the different generations of pack files. For instance: [remotefilelog] datagenerations=1GB 100MB 1MB Designates 4 generations - packs over 1GB, packs over 100MB, packs over 1MB, and implicitly packs undex 1MB. The incremental algorithm will try to keep each generation to less than 3 pack files (prioritizing the larger generations first). When performing a repack it will grab at least 2 packs, and will grab more if the total pack size is less than 100MB (since repacking at that level is pretty cheap). I have no idea if this is a good algorithm. We'll how to see and iterate. Test Plan: Adds a test Reviewers: mitrandir, #mercurial, ttung, rmcelroy Reviewed By: rmcelroy Subscribers: rmcelroy Differential Revision: https://phabricator.intern.facebook.com/D3306523 Signature: t1:3306523:1463697129:c87f4a397ef357b5ca4a80d01e9a6ca4d61f9d3d |
||
---|---|---|
.. | ||
__init__.py | ||
basestore.py | ||
cacheclient.py | ||
constants.py | ||
contentstore.py | ||
datapack.py | ||
debugcommands.py | ||
fileserverclient.py | ||
historypack.py | ||
metadatastore.py | ||
remotefilectx.py | ||
remotefilelog.py | ||
remotefilelogserver.py | ||
repack.py | ||
shallowbundle.py | ||
shallowrepo.py | ||
shallowstore.py | ||
shallowutil.py | ||
shallowverifier.py |