Mercurial > hg
comparison tests/test-debugcommands.t @ 26918:0438df737fb7
test: enable generaldelta in 'test-debugcommand.t'
The test logic is not affected by generaldelta, so we move it to
generaldelta early. Some of the fuzzy matching had to be extended to
cover "delta".
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Sun, 18 Oct 2015 19:04:29 +0200 |
parents | 944749de6f3a |
children | 4efb36ecaaec |
comparison
equal
deleted
inserted
replaced
26917:2329ca3ebc7a | 26918:0438df737fb7 |
---|---|
1 $ cat << EOF >> $HGRCPATH | |
2 > [format] | |
3 > usegeneraldelta=yes | |
4 > EOF | |
5 | |
1 $ hg init debugrevlog | 6 $ hg init debugrevlog |
2 $ cd debugrevlog | 7 $ cd debugrevlog |
3 $ echo a > a | 8 $ echo a > a |
4 $ hg ci -Am adda | 9 $ hg ci -Am adda |
5 adding a | 10 adding a |
6 $ hg debugrevlog -m | 11 $ hg debugrevlog -m |
7 format : 1 | 12 format : 1 |
8 flags : inline | 13 flags : inline, generaldelta |
9 | 14 |
10 revisions : 1 | 15 revisions : 1 |
11 merges : 0 ( 0.00%) | 16 merges : 0 ( 0.00%) |
12 normal : 1 (100.00%) | 17 normal : 1 (100.00%) |
13 revisions : 1 | 18 revisions : 1 |
25 full revision size (min/max/avg) : 44 / 44 / 44 | 30 full revision size (min/max/avg) : 44 / 44 / 44 |
26 delta size (min/max/avg) : 0 / 0 / 0 | 31 delta size (min/max/avg) : 0 / 0 / 0 |
27 | 32 |
28 Test debugindex, with and without the --debug flag | 33 Test debugindex, with and without the --debug flag |
29 $ hg debugindex a | 34 $ hg debugindex a |
30 rev offset length .... linkrev nodeid p1 p2 (re) | 35 rev offset length ..... linkrev nodeid p1 p2 (re) |
31 0 0 3 .... 0 b789fdd96dc2 000000000000 000000000000 (re) | 36 0 0 3 .... 0 b789fdd96dc2 000000000000 000000000000 (re) |
32 $ hg --debug debugindex a | 37 $ hg --debug debugindex a |
33 rev offset length .... linkrev nodeid p1 p2 (re) | 38 rev offset length ..... linkrev nodeid p1 p2 (re) |
34 0 0 3 .... 0 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 (re) | 39 0 0 3 .... 0 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 (re) |
35 $ hg debugindex -f 1 a | 40 $ hg debugindex -f 1 a |
36 rev flag offset length size .... link p1 p2 nodeid (re) | 41 rev flag offset length size ..... link p1 p2 nodeid (re) |
37 0 0000 0 3 2 .... 0 -1 -1 b789fdd96dc2 (re) | 42 0 0000 0 3 2 .... 0 -1 -1 b789fdd96dc2 (re) |
38 $ hg --debug debugindex -f 1 a | 43 $ hg --debug debugindex -f 1 a |
39 rev flag offset length size .... link p1 p2 nodeid (re) | 44 rev flag offset length size ..... link p1 p2 nodeid (re) |
40 0 0000 0 3 2 .... 0 -1 -1 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 (re) | 45 0 0000 0 3 2 .... 0 -1 -1 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 (re) |
41 | 46 |
42 | 47 |
43 Test max chain len | 48 Test max chain len |
44 $ cat >> $HGRCPATH << EOF | 49 $ cat >> $HGRCPATH << EOF |