--- a/tests/test-stablerange.t Fri Mar 24 09:40:50 2017 +0100
+++ b/tests/test-stablerange.t Fri Mar 24 09:42:39 2017 +0100
@@ -16,16 +16,16 @@
$ hg init repo_linear
$ cd repo_linear
$ hg debugbuilddag '.+6'
- $ hg debugstablerange --rev 1
+ $ hg debugobshashrange --rev 1
rev node index size depth obshash
1 66f7d451a68b 0 2 2 000000000000
0 1ea73414a91b 0 1 1 000000000000
1 66f7d451a68b 1 1 2 000000000000
- $ hg debugstablerange --rev 1 > 1.range
+ $ hg debugobshashrange --rev 1 > 1.range
bigger subset reuse most of the previous one
- $ hg debugstablerange --rev 4
+ $ hg debugobshashrange --rev 4
rev node index size depth obshash
4 bebd167eb94d 0 5 5 000000000000
3 2dc09a01254d 0 4 4 000000000000
@@ -36,7 +36,7 @@
3 2dc09a01254d 3 1 4 000000000000
1 66f7d451a68b 1 1 2 000000000000
4 bebd167eb94d 4 1 5 000000000000
- $ hg debugstablerange --rev 4 > 4.range
+ $ hg debugobshashrange --rev 4 > 4.range
$ diff -u 1.range 4.range
--- 1.range * (glob)
+++ 4.range * (glob)
@@ -56,7 +56,7 @@
Using a range not ending on 2**N boundary
we fall back on 2**N as much as possible
- $ hg debugstablerange --rev 5
+ $ hg debugobshashrange --rev 5
rev node index size depth obshash
5 c8d03c1b5e94 0 6 6 000000000000
3 2dc09a01254d 0 4 4 000000000000
@@ -69,7 +69,7 @@
1 66f7d451a68b 1 1 2 000000000000
4 bebd167eb94d 4 1 5 000000000000
5 c8d03c1b5e94 5 1 6 000000000000
- $ hg debugstablerange --rev 5 > 5.range
+ $ hg debugobshashrange --rev 5 > 5.range
$ diff -u 4.range 5.range
--- 4.range * (glob)
+++ 5.range * (glob)
@@ -91,7 +91,7 @@
Even two unperfect range overlap a lot
- $ hg debugstablerange --rev tip
+ $ hg debugobshashrange --rev tip
rev node index size depth obshash
6 f69452c5b1af 0 7 7 000000000000
3 2dc09a01254d 0 4 4 000000000000
@@ -106,7 +106,7 @@
4 bebd167eb94d 4 1 5 000000000000
5 c8d03c1b5e94 5 1 6 000000000000
6 f69452c5b1af 6 1 7 000000000000
- $ hg debugstablerange --rev tip > tip.range
+ $ hg debugobshashrange --rev tip > tip.range
$ diff -u 5.range tip.range
--- 5.range * (glob)
+++ tip.range * (glob)
@@ -168,13 +168,13 @@
(left branch)
- $ hg debugstablerange --rev 'left~2'
+ $ hg debugobshashrange --rev 'left~2'
rev node index size depth obshash
1 66f7d451a68b 0 2 2 000000000000
0 1ea73414a91b 0 1 1 000000000000
1 66f7d451a68b 1 1 2 000000000000
- $ hg debugstablerange --rev 'left~2' > left-2.range
- $ hg debugstablerange --rev left
+ $ hg debugobshashrange --rev 'left~2' > left-2.range
+ $ hg debugobshashrange --rev left
rev node index size depth obshash
3 2dc09a01254d 0 4 4 000000000000
3 2dc09a01254d 2 2 4 000000000000
@@ -183,7 +183,7 @@
0 1ea73414a91b 0 1 1 000000000000
3 2dc09a01254d 3 1 4 000000000000
1 66f7d451a68b 1 1 2 000000000000
- $ hg debugstablerange --rev 'left' > left.range
+ $ hg debugobshashrange --rev 'left' > left.range
$ diff -u left-2.range left.range
--- left-2.range * (glob)
+++ left.range * (glob)
@@ -200,13 +200,13 @@
(right branch)
- $ hg debugstablerange --rev right~2
+ $ hg debugobshashrange --rev right~2
rev node index size depth obshash
4 e7bd5218ca15 0 2 2 000000000000
0 1ea73414a91b 0 1 1 000000000000
4 e7bd5218ca15 1 1 2 000000000000
- $ hg debugstablerange --rev 'right~2' > right-2.range
- $ hg debugstablerange --rev right
+ $ hg debugobshashrange --rev 'right~2' > right-2.range
+ $ hg debugobshashrange --rev right
rev node index size depth obshash
6 a2f58e9c1e56 0 4 4 000000000000
6 a2f58e9c1e56 2 2 4 000000000000
@@ -215,7 +215,7 @@
5 3a367db1fabc 2 1 3 000000000000
6 a2f58e9c1e56 3 1 4 000000000000
4 e7bd5218ca15 1 1 2 000000000000
- $ hg debugstablerange --rev 'right' > right.range
+ $ hg debugobshashrange --rev 'right' > right.range
$ diff -u right-2.range right.range
--- right-2.range * (glob)
+++ right.range * (glob)
@@ -232,7 +232,7 @@
The merge reuse as much of the slicing created for one of the branch
- $ hg debugstablerange --rev merge
+ $ hg debugobshashrange --rev merge
rev node index size depth obshash
7 5f18015f9110 0 8 8 000000000000
3 2dc09a01254d 0 4 4 000000000000
@@ -249,7 +249,7 @@
1 66f7d451a68b 1 1 2 000000000000
6 a2f58e9c1e56 3 1 4 000000000000
4 e7bd5218ca15 1 1 2 000000000000
- $ hg debugstablerange --rev 'merge' > merge.range
+ $ hg debugobshashrange --rev 'merge' > merge.range
$ diff -u left.range merge.range
--- left.range * (glob)
+++ merge.range * (glob)
@@ -348,15 +348,15 @@
(left branch)
- $ hg debugstablerange --rev 'left~2'
+ $ hg debugobshashrange --rev 'left~2'
rev node index size depth obshash
2 01241442b3c2 0 3 3 000000000000
1 66f7d451a68b 0 2 2 000000000000
2 01241442b3c2 2 1 3 000000000000
0 1ea73414a91b 0 1 1 000000000000
1 66f7d451a68b 1 1 2 000000000000
- $ hg debugstablerange --rev 'left~2' > left-2.range
- $ hg debugstablerange --rev left
+ $ hg debugobshashrange --rev 'left~2' > left-2.range
+ $ hg debugobshashrange --rev left
rev node index size depth obshash
4 bebd167eb94d 0 5 5 000000000000
3 2dc09a01254d 0 4 4 000000000000
@@ -367,7 +367,7 @@
3 2dc09a01254d 3 1 4 000000000000
1 66f7d451a68b 1 1 2 000000000000
4 bebd167eb94d 4 1 5 000000000000
- $ hg debugstablerange --rev 'left' > left.range
+ $ hg debugobshashrange --rev 'left' > left.range
$ diff -u left-2.range left.range
--- left-2.range * (glob)
+++ left.range * (glob)
@@ -387,7 +387,7 @@
(right branch)
- $ hg debugstablerange --rev right~2
+ $ hg debugobshashrange --rev right~2
rev node index size depth obshash
7 42b07e8da27d 0 4 4 000000000000
7 42b07e8da27d 2 2 4 000000000000
@@ -396,8 +396,8 @@
7 42b07e8da27d 3 1 4 000000000000
6 b9bc20507e0b 2 1 3 000000000000
5 de561312eff4 1 1 2 000000000000
- $ hg debugstablerange --rev 'right~2' > right-2.range
- $ hg debugstablerange --rev right
+ $ hg debugobshashrange --rev 'right~2' > right-2.range
+ $ hg debugobshashrange --rev right
rev node index size depth obshash
9 f4b7da68b467 0 6 6 000000000000
7 42b07e8da27d 0 4 4 000000000000
@@ -410,7 +410,7 @@
6 b9bc20507e0b 2 1 3 000000000000
5 de561312eff4 1 1 2 000000000000
9 f4b7da68b467 5 1 6 000000000000
- $ hg debugstablerange --rev 'right' > right.range
+ $ hg debugobshashrange --rev 'right' > right.range
$ diff -u right-2.range right.range
--- right-2.range * (glob)
+++ right.range * (glob)
@@ -435,7 +435,7 @@
We are still able to reuse one of the branch however
- $ hg debugstablerange --rev merge
+ $ hg debugobshashrange --rev merge
rev node index size depth obshash
10 8aca7f8c9bd2 0 11 11 000000000000
4 bebd167eb94d 0 5 5 000000000000
@@ -458,7 +458,7 @@
4 bebd167eb94d 4 1 5 000000000000
5 de561312eff4 1 1 2 000000000000
9 f4b7da68b467 5 1 6 000000000000
- $ hg debugstablerange --rev 'merge' > merge.range
+ $ hg debugobshashrange --rev 'merge' > merge.range
$ diff -u left.range merge.range
--- left.range * (glob)
+++ merge.range * (glob)
@@ -517,7 +517,7 @@
Range above the merge, reuse subrange from the merge
- $ hg debugstablerange --rev tip
+ $ hg debugobshashrange --rev tip
rev node index size depth obshash
12 e6b8d5b46647 0 13 13 000000000000
4 bebd167eb94d 0 5 5 000000000000
@@ -544,7 +544,7 @@
5 de561312eff4 1 1 2 000000000000
12 e6b8d5b46647 12 1 13 000000000000
9 f4b7da68b467 5 1 6 000000000000
- $ hg debugstablerange --rev 'tip' > tip.range
+ $ hg debugobshashrange --rev 'tip' > tip.range
$ diff -u merge.range tip.range
--- merge.range * (glob)
+++ tip.range * (glob)
@@ -632,7 +632,7 @@
|/
o 0 1ea73414a91b r0
- $ hg debugstablerange --rev 'head()'
+ $ hg debugobshashrange --rev 'head()'
rev node index size depth obshash
15 1d8d22637c2d 0 8 8 000000000000
9 dcbb326fdec2 0 7 7 000000000000
@@ -692,7 +692,7 @@
|/
o 0 1ea73414a91b r0
- $ hg debugstablerange --rev 'head()'
+ $ hg debugobshashrange --rev 'head()'
rev node index size depth obshash
4 f37e476fba9a 0 5 5 000000000000
3 36315563e2fa 0 3 3 000000000000