##// END OF EJS Templates
parendelta: fix computation of base rev (fixes issue2337)...
parendelta: fix computation of base rev (fixes issue2337) Refactor revlog._addrevision() and put the correct base rev in the parent-delta case: base(rev) should always be equal to the first full snapshot that is needed by the delta chain, in both parent-delta and tip-delta case. Before this fix, the base rev was in most case wrong (and in the case where p1 == nullid, this triggered the bug from issue2337). This means that repositories converted to parent-delta earlier are corrupted and needs to be reconverted.

File last commit:

r11961:f3075ffa default
r11963:7c3aa579 default
Show More
test-subrepo-paths.t
33 lines | 632 B | text/troff | Tads3Lexer
/ tests / test-subrepo-paths.t
$ hg init outer
$ cd outer
hg debugsub with no remapping
$ echo 'sub = http://example.net/libfoo' > .hgsub
$ hg add .hgsub
$ hg debugsub
path sub
source http://example.net/libfoo
revision
hg debugsub with remapping
$ echo '[subpaths]' > .hg/hgrc
$ echo 'http://example.net/lib(.*) = C:\libs\\1-lib\' >> .hg/hgrc
$ hg debugsub
path sub
source C:\libs\foo-lib\
revision
test bad subpaths pattern
$ cat > .hg/hgrc <<EOF
> [subpaths]
> .* = \1
> EOF
$ hg debugsub
abort: bad subrepository pattern in .*/test-subrepo-paths.t/outer/.hg/hgrc:2: invalid group reference
$ exit 0