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".
--- a/tests/test-debugcommands.t Sun Oct 18 18:55:32 2015 +0200
+++ b/tests/test-debugcommands.t Sun Oct 18 19:04:29 2015 +0200
@@ -1,3 +1,8 @@
+ $ cat << EOF >> $HGRCPATH
+ > [format]
+ > usegeneraldelta=yes
+ > EOF
+
$ hg init debugrevlog
$ cd debugrevlog
$ echo a > a
@@ -5,7 +10,7 @@
adding a
$ hg debugrevlog -m
format : 1
- flags : inline
+ flags : inline, generaldelta
revisions : 1
merges : 0 ( 0.00%)
@@ -27,16 +32,16 @@
Test debugindex, with and without the --debug flag
$ hg debugindex a
- rev offset length .... linkrev nodeid p1 p2 (re)
+ rev offset length ..... linkrev nodeid p1 p2 (re)
0 0 3 .... 0 b789fdd96dc2 000000000000 000000000000 (re)
$ hg --debug debugindex a
- rev offset length .... linkrev nodeid p1 p2 (re)
+ rev offset length ..... linkrev nodeid p1 p2 (re)
0 0 3 .... 0 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 (re)
$ hg debugindex -f 1 a
- rev flag offset length size .... link p1 p2 nodeid (re)
+ rev flag offset length size ..... link p1 p2 nodeid (re)
0 0000 0 3 2 .... 0 -1 -1 b789fdd96dc2 (re)
$ hg --debug debugindex -f 1 a
- rev flag offset length size .... link p1 p2 nodeid (re)
+ rev flag offset length size ..... link p1 p2 nodeid (re)
0 0000 0 3 2 .... 0 -1 -1 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 (re)