Details
Details
- Reviewers
pulkit - Group Reviewers
hg-reviewers - Commits
- rHGa777ad36b287: remotefilelog: remove unused configs for {data,history}pack version
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 (2 lines) | |||
M | tests/remotefilelog-library.sh (4 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
Martin von Zweigbergk | Nov 9 2018, 12:35 PM |
Status | Author | Revision | |
---|---|---|---|
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz | ||
Closed | martinvonz |
configitem('remotefilelog', 'batchsize', configitems.dynamicdefault) | configitem('remotefilelog', 'batchsize', configitems.dynamicdefault) | ||||
configitem('remotefilelog', 'fetchwarning', default='') | configitem('remotefilelog', 'fetchwarning', default='') | ||||
configitem('remotefilelog', 'includepattern', default=None) | configitem('remotefilelog', 'includepattern', default=None) | ||||
configitem('remotefilelog', 'excludepattern', default=None) | configitem('remotefilelog', 'excludepattern', default=None) | ||||
configitem('remotefilelog', 'gcrepack', default=False) | configitem('remotefilelog', 'gcrepack', default=False) | ||||
configitem('remotefilelog', 'repackonhggc', default=False) | configitem('remotefilelog', 'repackonhggc', default=False) | ||||
configitem('remotefilelog', 'datapackversion', default=0) | |||||
configitem('repack', 'chainorphansbysize', default=True) | configitem('repack', 'chainorphansbysize', default=True) | ||||
configitem('packs', 'maxpacksize', default=0) | configitem('packs', 'maxpacksize', default=0) | ||||
configitem('packs', 'maxchainlen', default=1000) | configitem('packs', 'maxchainlen', default=1000) | ||||
configitem('remotefilelog', 'historypackv1', default=False) | |||||
# default TTL limit is 30 days | # default TTL limit is 30 days | ||||
_defaultlimit = 60 * 60 * 24 * 30 | _defaultlimit = 60 * 60 * 24 * 30 | ||||
configitem('remotefilelog', 'nodettl', default=_defaultlimit) | configitem('remotefilelog', 'nodettl', default=_defaultlimit) | ||||
configitem('remotefilelog', 'data.gencountlimit', default=2), | configitem('remotefilelog', 'data.gencountlimit', default=2), | ||||
configitem('remotefilelog', 'data.generations', | configitem('remotefilelog', 'data.generations', | ||||
default=['1GB', '100MB', '1MB']) | default=['1GB', '100MB', '1MB']) | ||||
configitem('remotefilelog', 'data.maxrepackpacks', default=50) | configitem('remotefilelog', 'data.maxrepackpacks', default=50) |
CACHEDIR=$PWD/hgcache | CACHEDIR=$PWD/hgcache | ||||
cat >> $HGRCPATH <<EOF | cat >> $HGRCPATH <<EOF | ||||
[remotefilelog] | [remotefilelog] | ||||
cachepath=$CACHEDIR | cachepath=$CACHEDIR | ||||
debug=True | debug=True | ||||
historypackv1=True | |||||
datapackversion=1 | |||||
[extensions] | [extensions] | ||||
remotefilelog= | remotefilelog= | ||||
rebase= | rebase= | ||||
mq= | mq= | ||||
[ui] | [ui] | ||||
ssh=python "$TESTDIR/dummyssh" | ssh=python "$TESTDIR/dummyssh" | ||||
[server] | [server] | ||||
preferuncompressed=True | preferuncompressed=True | ||||
orig=$1 | orig=$1 | ||||
shift | shift | ||||
dest=$1 | dest=$1 | ||||
shift | shift | ||||
hg clone --shallow --config remotefilelog.reponame=master $orig $dest $@ | hg clone --shallow --config remotefilelog.reponame=master $orig $dest $@ | ||||
cat >> $dest/.hg/hgrc <<EOF | cat >> $dest/.hg/hgrc <<EOF | ||||
[remotefilelog] | [remotefilelog] | ||||
reponame=master | reponame=master | ||||
datapackversion=1 | |||||
[phases] | [phases] | ||||
publish=False | publish=False | ||||
EOF | EOF | ||||
} | } | ||||
hgcloneshallowlfs() { | hgcloneshallowlfs() { | ||||
local name | local name | ||||
local dest | local dest | ||||
local lfsdir | local lfsdir | ||||
orig=$1 | orig=$1 | ||||
shift | shift | ||||
dest=$1 | dest=$1 | ||||
shift | shift | ||||
lfsdir=$1 | lfsdir=$1 | ||||
shift | shift | ||||
hg clone --shallow --config "extensions.lfs=" --config "lfs.url=$lfsdir" --config remotefilelog.reponame=master $orig $dest $@ | hg clone --shallow --config "extensions.lfs=" --config "lfs.url=$lfsdir" --config remotefilelog.reponame=master $orig $dest $@ | ||||
cat >> $dest/.hg/hgrc <<EOF | cat >> $dest/.hg/hgrc <<EOF | ||||
[extensions] | [extensions] | ||||
lfs= | lfs= | ||||
[lfs] | [lfs] | ||||
url=$lfsdir | url=$lfsdir | ||||
[remotefilelog] | [remotefilelog] | ||||
reponame=master | reponame=master | ||||
datapackversion=1 | |||||
[phases] | [phases] | ||||
publish=False | publish=False | ||||
EOF | EOF | ||||
} | } | ||||
clearcache() { | clearcache() { | ||||
rm -rf $CACHEDIR/* | rm -rf $CACHEDIR/* | ||||
} | } |