diff --git a/remotefilelog/__init__.py b/remotefilelog/__init__.py --- a/remotefilelog/__init__.py +++ b/remotefilelog/__init__.py @@ -23,10 +23,28 @@ days after which it is no longer prefetched. ``remotefilelog.prefetchdelay`` specifies delay between background prefetches in seconds after operations that change the working copy parent + ``remotefilelog.data.gencountlimit`` constraints the minimum number of data + pack files required to be considered part of a generation. In particular, + minimum number of packs files > gencountlimit. + ``remotefilelog.data.generations`` list for specifying the lower bound of + each generation of the data pack files. For example, list ['100MB','1MB'] + or ['1MB', '100MB'] will lead to three generations: [0, 1MB), [ + 1MB, 100MB) and [100MB, infinity). ``remotefilelog.data.maxrepackpacks`` the maximum number of pack files to include in an incremental data repack. + ``remotefilelog.data.repacksizelimit`` the maximum total size of pack files + to include in an incremental data repack. + ``remotefilelog.history.gencountlimit`` constraints the minimum number of + history pack files required to be considered part of a generation. In + particular, minimum number of packs files > gencountlimit. + ``remotefilelog.history.generations`` list for specifying the lower bound of + each generation of the history pack files. For example, list [ + '100MB', '1MB'] or ['1MB', '100MB'] will lead to three generations: [ + 0, 1MB), [1MB, 100MB) and [100MB, infinity). ``remotefilelog.history.maxrepackpacks`` the maximum number of pack files to include in an incremental history repack. + ``remotefilelog.history.repacksizelimit`` the maximum total size of pack + files to include in an incremental history repack. """ from . import fileserverclient, remotefilelog, remotefilectx, shallowstore diff --git a/remotefilelog/repack.py b/remotefilelog/repack.py --- a/remotefilelog/repack.py +++ b/remotefilelog/repack.py @@ -294,7 +294,7 @@ break # Steps for picking what packs to repack: - # 1. Pick the largest generation with >2 pack files. + # 1. Pick the largest generation with > gencountlimit pack files. # 2. Take the smallest three packs. # 3. While total-size-of-packs < repacksizelimit: add another pack diff --git a/tests/test-check-config-hg.t b/tests/test-check-config-hg.t --- a/tests/test-check-config-hg.t +++ b/tests/test-check-config-hg.t @@ -51,7 +51,6 @@ undocumented: rage.fastmanifestcached (bool) undocumented: remotefilelog.backgroundrepack (bool) undocumented: remotefilelog.cachegroup (str) - undocumented: remotefilelog.data.gencountlimit (int) [2] undocumented: remotefilelog.debug (bool) undocumented: remotefilelog.excludepattern (list) undocumented: remotefilelog.fastdatapack (bool) @@ -59,7 +58,6 @@ undocumented: remotefilelog.fetchwarning (str) undocumented: remotefilelog.getfilesstep (int) [10000] undocumented: remotefilelog.getfilestype (str) ['optimistic'] - undocumented: remotefilelog.history.gencountlimit (int) [2] undocumented: remotefilelog.includepattern (list) undocumented: remotefilelog.pullprefetch (str) undocumented: remotefilelog.reponame (str)