Show More
@@ -0,0 +1,29 b'' | |||||
|
1 | ||||
|
2 | $ NO_FALLBACK="env RHG_ON_UNSUPPORTED=abort" | |||
|
3 | ||||
|
4 | $ cat << EOF >> $HGRCPATH | |||
|
5 | > [format] | |||
|
6 | > sparse-revlog = no | |||
|
7 | > EOF | |||
|
8 | ||||
|
9 | $ hg init repo --config format.generaldelta=no --config format.usegeneraldelta=no | |||
|
10 | $ cd repo | |||
|
11 | $ (echo header; seq.py 20) > f | |||
|
12 | $ hg commit -q -Am initial | |||
|
13 | $ (echo header; seq.py 20; echo footer) > f | |||
|
14 | $ hg commit -q -Am x | |||
|
15 | $ hg update ".^" | |||
|
16 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
17 | $ (seq.py 20; echo footer) > f | |||
|
18 | $ hg commit -q -Am y | |||
|
19 | $ hg debugdeltachain f --template '{rev} {prevrev} {deltatype}\n' | |||
|
20 | 0 -1 base | |||
|
21 | 1 0 prev | |||
|
22 | 2 1 prev | |||
|
23 | ||||
|
24 | rhg breaks on non-generaldelta revlogs: | |||
|
25 | ||||
|
26 | $ $NO_FALLBACK hg cat f -r . | f --sha256 --size | |||
|
27 | abort: corrupted revlog (rhg !) | |||
|
28 | size=0, sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 (rhg !) | |||
|
29 | size=58, sha256=0cf0386dd4813cc3b957ea790146627dfc0ec42ad3fcf47221b9842e4d5764c1 (no-rhg !) |
General Comments 0
You need to be logged in to leave comments.
Login now