This make sure they are will be selected during upgrade, and copy based clone.
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
This make sure they are will be selected during upgrade, and copy based clone.
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/store.py (2 lines) | |||
M | tests/test-persistent-nodemap.t (2 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
b6274cecd23c | c8201cad21d5 | Pierre-Yves David | Jan 12 2021, 1:49 PM |
b'00changelog.i', | b'00changelog.i', | ||||
b'phaseroots', | b'phaseroots', | ||||
b'obsstore', | b'obsstore', | ||||
b'requires', | b'requires', | ||||
] | ] | ||||
def isrevlog(f, kind, st): | def isrevlog(f, kind, st): | ||||
return kind == stat.S_IFREG and f[-2:] in (b'.i', b'.d') | return kind == stat.S_IFREG and f[-2:] in (b'.i', b'.d', b'.n', b'.nd') | ||||
class basicstore(object): | class basicstore(object): | ||||
'''base class for local repository stores''' | '''base class for local repository stores''' | ||||
def __init__(self, path, vfstype): | def __init__(self, path, vfstype): | ||||
vfs = vfstype(path) | vfs = vfstype(path) | ||||
self.path = vfs.base | self.path = vfs.base |
data-unused: 0.000% | data-unused: 0.000% | ||||
stream clone | stream clone | ||||
------------ | ------------ | ||||
The persistent nodemap should exist after a streaming clone | The persistent nodemap should exist after a streaming clone | ||||
$ hg clone -U --stream --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/test-repo stream-clone --debug | egrep '00(changelog|manifest)' | $ hg clone -U --stream --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/test-repo stream-clone --debug | egrep '00(changelog|manifest)' | ||||
adding [s] 00manifest.n (70 bytes) | |||||
adding [s] 00manifest.i (313 KB) | adding [s] 00manifest.i (313 KB) | ||||
adding [s] 00manifest.d (452 KB) | adding [s] 00manifest.d (452 KB) | ||||
adding [s] 00changelog.n (70 bytes) | |||||
adding [s] 00changelog.i (313 KB) | adding [s] 00changelog.i (313 KB) | ||||
adding [s] 00changelog.d (360 KB) | adding [s] 00changelog.d (360 KB) | ||||
$ ls -1 stream-clone/.hg/store/ | egrep '00(changelog|manifest)(\.n|-.*\.nd)' | $ ls -1 stream-clone/.hg/store/ | egrep '00(changelog|manifest)(\.n|-.*\.nd)' | ||||
00changelog-*.nd (glob) | 00changelog-*.nd (glob) | ||||
00changelog.n | 00changelog.n | ||||
00manifest-*.nd (glob) | 00manifest-*.nd (glob) | ||||
00manifest.n | 00manifest.n | ||||
$ hg -R stream-clone debugnodemap --metadata | $ hg -R stream-clone debugnodemap --metadata | ||||
uid: * (glob) | uid: * (glob) | ||||
tip-rev: 5005 | tip-rev: 5005 | ||||
tip-node: 90d5d3ba2fc47db50f712570487cb261a68c8ffe | tip-node: 90d5d3ba2fc47db50f712570487cb261a68c8ffe | ||||
data-length: 121088 | data-length: 121088 | ||||
data-unused: 0 | data-unused: 0 | ||||
data-unused: 0.000% | data-unused: 0.000% |