Details
Details
- Reviewers
pulkit - Group Reviewers
hg-reviewers - Commits
- rHG040447dc3c62: remotefilelog: fix various whitespace issues in docstring
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
pulkit |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | hgext/remotefilelog/__init__.py (38 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
Augie Fackler | Nov 6 2018, 10:26 AM |
remotefilelog works by fetching file contents lazily and storing them | remotefilelog works by fetching file contents lazily and storing them | ||||
in a cache on the client rather than in revlogs. This allows enormous | in a cache on the client rather than in revlogs. This allows enormous | ||||
histories to be transferred only partially, making them easier to | histories to be transferred only partially, making them easier to | ||||
operate on. | operate on. | ||||
Configs: | Configs: | ||||
``packs.maxchainlen`` specifies the maximum delta chain length in pack files | ``packs.maxchainlen`` specifies the maximum delta chain length in pack files | ||||
``packs.maxpacksize`` specifies the maximum pack file size | ``packs.maxpacksize`` specifies the maximum pack file size | ||||
``packs.maxpackfilecount`` specifies the maximum number of packs in the | ``packs.maxpackfilecount`` specifies the maximum number of packs in the | ||||
shared cache (trees only for now) | shared cache (trees only for now) | ||||
``remotefilelog.backgroundprefetch`` runs prefetch in background when True | ``remotefilelog.backgroundprefetch`` runs prefetch in background when True | ||||
``remotefilelog.bgprefetchrevs`` specifies revisions to fetch on commit and | ``remotefilelog.bgprefetchrevs`` specifies revisions to fetch on commit and | ||||
update, and on other commands that use them. Different from pullprefetch. | update, and on other commands that use them. Different from pullprefetch. | ||||
``remotefilelog.gcrepack`` does garbage collection during repack when True | ``remotefilelog.gcrepack`` does garbage collection during repack when True | ||||
``remotefilelog.nodettl`` specifies maximum TTL of a node in seconds before | ``remotefilelog.nodettl`` specifies maximum TTL of a node in seconds before | ||||
it is garbage collected | it is garbage collected | ||||
``remotefilelog.repackonhggc`` runs repack on hg gc when True | ``remotefilelog.repackonhggc`` runs repack on hg gc when True | ||||
``remotefilelog.prefetchdays`` specifies the maximum age of a commit in | ``remotefilelog.prefetchdays`` specifies the maximum age of a commit in | ||||
days after which it is no longer prefetched. | days after which it is no longer prefetched. | ||||
``remotefilelog.prefetchdelay`` specifies delay between background | ``remotefilelog.prefetchdelay`` specifies delay between background | ||||
prefetches in seconds after operations that change the working copy parent | prefetches in seconds after operations that change the working copy parent | ||||
``remotefilelog.data.gencountlimit`` constraints the minimum number of data | ``remotefilelog.data.gencountlimit`` constraints the minimum number of data | ||||
pack files required to be considered part of a generation. In particular, | pack files required to be considered part of a generation. In particular, | ||||
minimum number of packs files > gencountlimit. | minimum number of packs files > gencountlimit. | ||||
``remotefilelog.data.generations`` list for specifying the lower bound of | ``remotefilelog.data.generations`` list for specifying the lower bound of | ||||
each generation of the data pack files. For example, list ['100MB','1MB'] | each generation of the data pack files. For example, list ['100MB','1MB'] | ||||
or ['1MB', '100MB'] will lead to three generations: [0, 1MB), [ | or ['1MB', '100MB'] will lead to three generations: [0, 1MB), [ | ||||
1MB, 100MB) and [100MB, infinity). | 1MB, 100MB) and [100MB, infinity). | ||||
``remotefilelog.data.maxrepackpacks`` the maximum number of pack files to | ``remotefilelog.data.maxrepackpacks`` the maximum number of pack files to | ||||
include in an incremental data repack. | include in an incremental data repack. | ||||
``remotefilelog.data.repackmaxpacksize`` the maximum size of a pack file for | ``remotefilelog.data.repackmaxpacksize`` the maximum size of a pack file for | ||||
it to be considered for an incremental data repack. | it to be considered for an incremental data repack. | ||||
``remotefilelog.data.repacksizelimit`` the maximum total size of pack files | ``remotefilelog.data.repacksizelimit`` the maximum total size of pack files | ||||
to include in an incremental data repack. | to include in an incremental data repack. | ||||
``remotefilelog.history.gencountlimit`` constraints the minimum number of | ``remotefilelog.history.gencountlimit`` constraints the minimum number of | ||||
history pack files required to be considered part of a generation. In | history pack files required to be considered part of a generation. In | ||||
particular, minimum number of packs files > gencountlimit. | particular, minimum number of packs files > gencountlimit. | ||||
``remotefilelog.history.generations`` list for specifying the lower bound of | ``remotefilelog.history.generations`` list for specifying the lower bound of | ||||
each generation of the historhy pack files. For example, list [ | each generation of the historhy pack files. For example, list [ | ||||
'100MB', '1MB'] or ['1MB', '100MB'] will lead to three generations: [ | '100MB', '1MB'] or ['1MB', '100MB'] will lead to three generations: [ | ||||
0, 1MB), [1MB, 100MB) and [100MB, infinity). | 0, 1MB), [1MB, 100MB) and [100MB, infinity). | ||||
``remotefilelog.history.maxrepackpacks`` the maximum number of pack files to | ``remotefilelog.history.maxrepackpacks`` the maximum number of pack files to | ||||
include in an incremental history repack. | include in an incremental history repack. | ||||
``remotefilelog.history.repackmaxpacksize`` the maximum size of a pack file | ``remotefilelog.history.repackmaxpacksize`` the maximum size of a pack file | ||||
for it to be considered for an incremental history repack. | for it to be considered for an incremental history repack. | ||||
``remotefilelog.history.repacksizelimit`` the maximum total size of pack | ``remotefilelog.history.repacksizelimit`` the maximum total size of pack | ||||
files to include in an incremental history repack. | files to include in an incremental history repack. | ||||
``remotefilelog.backgroundrepack`` automatically consolidate packs in the | ``remotefilelog.backgroundrepack`` automatically consolidate packs in the | ||||
background | background | ||||
``remotefilelog.cachepath`` path to cache | ``remotefilelog.cachepath`` path to cache | ||||
``remotefilelog.cachegroup`` if set, make cache directory sgid to this | ``remotefilelog.cachegroup`` if set, make cache directory sgid to this | ||||
group | group | ||||
``remotefilelog.cacheprocess`` binary to invoke for fetching file data | ``remotefilelog.cacheprocess`` binary to invoke for fetching file data | ||||
``remotefilelog.debug`` turn on remotefilelog-specific debug output | ``remotefilelog.debug`` turn on remotefilelog-specific debug output | ||||
``remotefilelog.excludepattern`` pattern of files to exclude from pulls | ``remotefilelog.excludepattern`` pattern of files to exclude from pulls | ||||
``remotefilelog.includepattern``pattern of files to include in pulls | ``remotefilelog.includepattern`` pattern of files to include in pulls | ||||
``remotefilelog.fetchwarning``: message to print when too many | ``remotefilelog.fetchwarning``: message to print when too many | ||||
single-file fetches occur | single-file fetches occur | ||||
``remotefilelog.getfilesstep`` number of files to request in a single RPC | ``remotefilelog.getfilesstep`` number of files to request in a single RPC | ||||
``remotefilelog.getfilestype`` if set to 'threaded' use threads to fetch | ``remotefilelog.getfilestype`` if set to 'threaded' use threads to fetch | ||||
files, otherwise use optimistic fetching | files, otherwise use optimistic fetching | ||||
``remotefilelog.pullprefetch`` revset for selecting files that should be | ``remotefilelog.pullprefetch`` revset for selecting files that should be | ||||
eagerly downloaded rather than lazily | eagerly downloaded rather than lazily | ||||
``remotefilelog.reponame`` name of the repo. If set, used to partition | ``remotefilelog.reponame`` name of the repo. If set, used to partition | ||||
data from other repos in a shared store. | data from other repos in a shared store. | ||||
``remotefilelog.server`` if true, enable server-side functionality | ``remotefilelog.server`` if true, enable server-side functionality | ||||
``remotefilelog.servercachepath`` path for caching blobs on the server | ``remotefilelog.servercachepath`` path for caching blobs on the server | ||||
``remotefilelog.serverexpiration`` number of days to keep cached server | ``remotefilelog.serverexpiration`` number of days to keep cached server | ||||
blobs | blobs | ||||
``remotefilelog.validatecache`` if set, check cache entries for corruption | ``remotefilelog.validatecache`` if set, check cache entries for corruption | ||||
before returning blobs | before returning blobs | ||||
``remotefilelog.validatecachelog`` if set, check cache entries for | ``remotefilelog.validatecachelog`` if set, check cache entries for | ||||
corruption before returning metadata | corruption before returning metadata | ||||
""" | """ | ||||
from __future__ import absolute_import | from __future__ import absolute_import | ||||
import os | import os | ||||
import time | import time |