comparison tests/test-stablerange-branchpoint.t @ 5992:eb1333a0c290

tests: use `| tee` for writing to files at the same time as to stdout
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 01 Jul 2021 14:36:20 +0300
parents 79a63cc9757e
children 530c7eaa9d57
comparison
equal deleted inserted replaced
5991:79a63cc9757e 5992:eb1333a0c290
38 01241442b3c2 3 38 01241442b3c2 3
39 2dc09a01254d 4 39 2dc09a01254d 4
40 bebd167eb94d 5 40 bebd167eb94d 5
41 c8d03c1b5e94 6 41 c8d03c1b5e94 6
42 f69452c5b1af 7 42 f69452c5b1af 7
43 $ hg debugstablerange --verify --verbose --subranges --rev 1 43 $ hg debugstablerange --verify --verbose --subranges --rev 1 | tee 1.range
44 66f7d451a68b-0 (1, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), 66f7d451a68b-1 (1, 2, 1) 44 66f7d451a68b-0 (1, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), 66f7d451a68b-1 (1, 2, 1)
45 1ea73414a91b-0 (0, 1, 1) [leaf] - 45 1ea73414a91b-0 (0, 1, 1) [leaf] -
46 66f7d451a68b-1 (1, 2, 1) [leaf] - 46 66f7d451a68b-1 (1, 2, 1) [leaf] -
47 $ hg debugstablerange --verify --verbose --subranges --rev 1 > 1.range
48 47
49 bigger subset reuse most of the previous one 48 bigger subset reuse most of the previous one
50 49
51 $ hg debugstablerange --verify --verbose --subranges --rev 4 50 $ hg debugstablerange --verify --verbose --subranges --rev 4 | tee 4.range
52 bebd167eb94d-0 (4, 5, 5) [complete] - 2dc09a01254d-0 (3, 4, 4), bebd167eb94d-4 (4, 5, 1) 51 bebd167eb94d-0 (4, 5, 5) [complete] - 2dc09a01254d-0 (3, 4, 4), bebd167eb94d-4 (4, 5, 1)
53 2dc09a01254d-0 (3, 4, 4) [complete] - 66f7d451a68b-0 (1, 2, 2), 2dc09a01254d-2 (3, 4, 2) 52 2dc09a01254d-0 (3, 4, 4) [complete] - 66f7d451a68b-0 (1, 2, 2), 2dc09a01254d-2 (3, 4, 2)
54 2dc09a01254d-2 (3, 4, 2) [complete] - 01241442b3c2-2 (2, 3, 1), 2dc09a01254d-3 (3, 4, 1) 53 2dc09a01254d-2 (3, 4, 2) [complete] - 01241442b3c2-2 (2, 3, 1), 2dc09a01254d-3 (3, 4, 1)
55 66f7d451a68b-0 (1, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), 66f7d451a68b-1 (1, 2, 1) 54 66f7d451a68b-0 (1, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), 66f7d451a68b-1 (1, 2, 1)
56 01241442b3c2-2 (2, 3, 1) [leaf] - 55 01241442b3c2-2 (2, 3, 1) [leaf] -
57 1ea73414a91b-0 (0, 1, 1) [leaf] - 56 1ea73414a91b-0 (0, 1, 1) [leaf] -
58 2dc09a01254d-3 (3, 4, 1) [leaf] - 57 2dc09a01254d-3 (3, 4, 1) [leaf] -
59 66f7d451a68b-1 (1, 2, 1) [leaf] - 58 66f7d451a68b-1 (1, 2, 1) [leaf] -
60 bebd167eb94d-4 (4, 5, 1) [leaf] - 59 bebd167eb94d-4 (4, 5, 1) [leaf] -
61 $ hg debugstablerange --verify --verbose --subranges --rev 4 > 4.range
62 $ diff -u 1.range 4.range 60 $ diff -u 1.range 4.range
63 --- 1.range * (glob) 61 --- 1.range * (glob)
64 +++ 4.range * (glob) 62 +++ 4.range * (glob)
65 @@ -1,3 +1,9 @@ 63 @@ -1,3 +1,9 @@
66 +bebd167eb94d-0 (4, 5, 5) [complete] - 2dc09a01254d-0 (3, 4, 4), bebd167eb94d-4 (4, 5, 1) 64 +bebd167eb94d-0 (4, 5, 5) [complete] - 2dc09a01254d-0 (3, 4, 4), bebd167eb94d-4 (4, 5, 1)
75 [1] 73 [1]
76 74
77 Using a range not ending on 2**N boundary 75 Using a range not ending on 2**N boundary
78 we fall back on 2**N as much as possible 76 we fall back on 2**N as much as possible
79 77
80 $ hg debugstablerange --verify --verbose --subranges --rev 5 78 $ hg debugstablerange --verify --verbose --subranges --rev 5 | tee 5.range
81 c8d03c1b5e94-0 (5, 6, 6) [complete] - 2dc09a01254d-0 (3, 4, 4), c8d03c1b5e94-4 (5, 6, 2) 79 c8d03c1b5e94-0 (5, 6, 6) [complete] - 2dc09a01254d-0 (3, 4, 4), c8d03c1b5e94-4 (5, 6, 2)
82 2dc09a01254d-0 (3, 4, 4) [complete] - 66f7d451a68b-0 (1, 2, 2), 2dc09a01254d-2 (3, 4, 2) 80 2dc09a01254d-0 (3, 4, 4) [complete] - 66f7d451a68b-0 (1, 2, 2), 2dc09a01254d-2 (3, 4, 2)
83 2dc09a01254d-2 (3, 4, 2) [complete] - 01241442b3c2-2 (2, 3, 1), 2dc09a01254d-3 (3, 4, 1) 81 2dc09a01254d-2 (3, 4, 2) [complete] - 01241442b3c2-2 (2, 3, 1), 2dc09a01254d-3 (3, 4, 1)
84 66f7d451a68b-0 (1, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), 66f7d451a68b-1 (1, 2, 1) 82 66f7d451a68b-0 (1, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), 66f7d451a68b-1 (1, 2, 1)
85 c8d03c1b5e94-4 (5, 6, 2) [complete] - bebd167eb94d-4 (4, 5, 1), c8d03c1b5e94-5 (5, 6, 1) 83 c8d03c1b5e94-4 (5, 6, 2) [complete] - bebd167eb94d-4 (4, 5, 1), c8d03c1b5e94-5 (5, 6, 1)
87 1ea73414a91b-0 (0, 1, 1) [leaf] - 85 1ea73414a91b-0 (0, 1, 1) [leaf] -
88 2dc09a01254d-3 (3, 4, 1) [leaf] - 86 2dc09a01254d-3 (3, 4, 1) [leaf] -
89 66f7d451a68b-1 (1, 2, 1) [leaf] - 87 66f7d451a68b-1 (1, 2, 1) [leaf] -
90 bebd167eb94d-4 (4, 5, 1) [leaf] - 88 bebd167eb94d-4 (4, 5, 1) [leaf] -
91 c8d03c1b5e94-5 (5, 6, 1) [leaf] - 89 c8d03c1b5e94-5 (5, 6, 1) [leaf] -
92 $ hg debugstablerange --verify --verbose --subranges --rev 5 > 5.range
93 $ diff -u 4.range 5.range 90 $ diff -u 4.range 5.range
94 --- 4.range * (glob) 91 --- 4.range * (glob)
95 +++ 5.range * (glob) 92 +++ 5.range * (glob)
96 @@ -1,9 +1,11 @@ 93 @@ -1,9 +1,11 @@
97 -bebd167eb94d-0 (4, 5, 5) [complete] - 2dc09a01254d-0 (3, 4, 4), bebd167eb94d-4 (4, 5, 1) 94 -bebd167eb94d-0 (4, 5, 5) [complete] - 2dc09a01254d-0 (3, 4, 4), bebd167eb94d-4 (4, 5, 1)
108 +c8d03c1b5e94-5 (5, 6, 1) [leaf] - 105 +c8d03c1b5e94-5 (5, 6, 1) [leaf] -
109 [1] 106 [1]
110 107
111 Even two unperfect range overlap a lot 108 Even two unperfect range overlap a lot
112 109
113 $ hg debugstablerange --verify --verbose --subranges --rev tip 110 $ hg debugstablerange --verify --verbose --subranges --rev tip | tee tip.range
114 f69452c5b1af-0 (6, 7, 7) [complete] - 2dc09a01254d-0 (3, 4, 4), f69452c5b1af-4 (6, 7, 3) 111 f69452c5b1af-0 (6, 7, 7) [complete] - 2dc09a01254d-0 (3, 4, 4), f69452c5b1af-4 (6, 7, 3)
115 2dc09a01254d-0 (3, 4, 4) [complete] - 66f7d451a68b-0 (1, 2, 2), 2dc09a01254d-2 (3, 4, 2) 112 2dc09a01254d-0 (3, 4, 4) [complete] - 66f7d451a68b-0 (1, 2, 2), 2dc09a01254d-2 (3, 4, 2)
116 f69452c5b1af-4 (6, 7, 3) [complete] - c8d03c1b5e94-4 (5, 6, 2), f69452c5b1af-6 (6, 7, 1) 113 f69452c5b1af-4 (6, 7, 3) [complete] - c8d03c1b5e94-4 (5, 6, 2), f69452c5b1af-6 (6, 7, 1)
117 2dc09a01254d-2 (3, 4, 2) [complete] - 01241442b3c2-2 (2, 3, 1), 2dc09a01254d-3 (3, 4, 1) 114 2dc09a01254d-2 (3, 4, 2) [complete] - 01241442b3c2-2 (2, 3, 1), 2dc09a01254d-3 (3, 4, 1)
118 66f7d451a68b-0 (1, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), 66f7d451a68b-1 (1, 2, 1) 115 66f7d451a68b-0 (1, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), 66f7d451a68b-1 (1, 2, 1)
122 2dc09a01254d-3 (3, 4, 1) [leaf] - 119 2dc09a01254d-3 (3, 4, 1) [leaf] -
123 66f7d451a68b-1 (1, 2, 1) [leaf] - 120 66f7d451a68b-1 (1, 2, 1) [leaf] -
124 bebd167eb94d-4 (4, 5, 1) [leaf] - 121 bebd167eb94d-4 (4, 5, 1) [leaf] -
125 c8d03c1b5e94-5 (5, 6, 1) [leaf] - 122 c8d03c1b5e94-5 (5, 6, 1) [leaf] -
126 f69452c5b1af-6 (6, 7, 1) [leaf] - 123 f69452c5b1af-6 (6, 7, 1) [leaf] -
127 $ hg debugstablerange --verify --verbose --subranges --rev tip > tip.range
128 $ diff -u 5.range tip.range 124 $ diff -u 5.range tip.range
129 --- 5.range * (glob) 125 --- 5.range * (glob)
130 +++ tip.range * (glob) 126 +++ tip.range * (glob)
131 @@ -1,5 +1,6 @@ 127 @@ -1,5 +1,6 @@
132 -c8d03c1b5e94-0 (5, 6, 6) [complete] - 2dc09a01254d-0 (3, 4, 4), c8d03c1b5e94-4 (5, 6, 2) 128 -c8d03c1b5e94-0 (5, 6, 6) [complete] - 2dc09a01254d-0 (3, 4, 4), c8d03c1b5e94-4 (5, 6, 2)
194 190
195 Each of the linear branch reuse range internally 191 Each of the linear branch reuse range internally
196 192
197 (left branch) 193 (left branch)
198 194
199 $ hg debugstablerange --verify --verbose --subranges --rev 'left~2' 195 $ hg debugstablerange --verify --verbose --subranges --rev 'left~2' | tee left-2.range
200 66f7d451a68b-0 (1, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), 66f7d451a68b-1 (1, 2, 1) 196 66f7d451a68b-0 (1, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), 66f7d451a68b-1 (1, 2, 1)
201 1ea73414a91b-0 (0, 1, 1) [leaf] - 197 1ea73414a91b-0 (0, 1, 1) [leaf] -
202 66f7d451a68b-1 (1, 2, 1) [leaf] - 198 66f7d451a68b-1 (1, 2, 1) [leaf] -
203 $ hg debugstablerange --verify --verbose --subranges --rev 'left~2' > left-2.range 199 $ hg debugstablerange --verify --verbose --subranges --rev left | tee left.range
204 $ hg debugstablerange --verify --verbose --subranges --rev left
205 2dc09a01254d-0 (3, 4, 4) [complete] - 66f7d451a68b-0 (1, 2, 2), 2dc09a01254d-2 (3, 4, 2) 200 2dc09a01254d-0 (3, 4, 4) [complete] - 66f7d451a68b-0 (1, 2, 2), 2dc09a01254d-2 (3, 4, 2)
206 2dc09a01254d-2 (3, 4, 2) [complete] - 01241442b3c2-2 (2, 3, 1), 2dc09a01254d-3 (3, 4, 1) 201 2dc09a01254d-2 (3, 4, 2) [complete] - 01241442b3c2-2 (2, 3, 1), 2dc09a01254d-3 (3, 4, 1)
207 66f7d451a68b-0 (1, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), 66f7d451a68b-1 (1, 2, 1) 202 66f7d451a68b-0 (1, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), 66f7d451a68b-1 (1, 2, 1)
208 01241442b3c2-2 (2, 3, 1) [leaf] - 203 01241442b3c2-2 (2, 3, 1) [leaf] -
209 1ea73414a91b-0 (0, 1, 1) [leaf] - 204 1ea73414a91b-0 (0, 1, 1) [leaf] -
210 2dc09a01254d-3 (3, 4, 1) [leaf] - 205 2dc09a01254d-3 (3, 4, 1) [leaf] -
211 66f7d451a68b-1 (1, 2, 1) [leaf] - 206 66f7d451a68b-1 (1, 2, 1) [leaf] -
212 $ hg debugstablerange --verify --verbose --subranges --rev 'left' > left.range
213 $ diff -u left-2.range left.range 207 $ diff -u left-2.range left.range
214 --- left-2.range * (glob) 208 --- left-2.range * (glob)
215 +++ left.range * (glob) 209 +++ left.range * (glob)
216 @@ -1,3 +1,7 @@ 210 @@ -1,3 +1,7 @@
217 +2dc09a01254d-0 (3, 4, 4) [complete] - 66f7d451a68b-0 (1, 2, 2), 2dc09a01254d-2 (3, 4, 2) 211 +2dc09a01254d-0 (3, 4, 4) [complete] - 66f7d451a68b-0 (1, 2, 2), 2dc09a01254d-2 (3, 4, 2)
223 66f7d451a68b-1 (1, 2, 1) [leaf] - 217 66f7d451a68b-1 (1, 2, 1) [leaf] -
224 [1] 218 [1]
225 219
226 (right branch) 220 (right branch)
227 221
228 $ hg debugstablerange --verify --verbose --subranges --rev right~2 222 $ hg debugstablerange --verify --verbose --subranges --rev right~2 | tee right-2.range
229 e7bd5218ca15-0 (4, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), e7bd5218ca15-1 (4, 2, 1) 223 e7bd5218ca15-0 (4, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), e7bd5218ca15-1 (4, 2, 1)
230 1ea73414a91b-0 (0, 1, 1) [leaf] - 224 1ea73414a91b-0 (0, 1, 1) [leaf] -
231 e7bd5218ca15-1 (4, 2, 1) [leaf] - 225 e7bd5218ca15-1 (4, 2, 1) [leaf] -
232 $ hg debugstablerange --verify --verbose --subranges --rev 'right~2' > right-2.range 226 $ hg debugstablerange --verify --verbose --subranges --rev right | tee right.range
233 $ hg debugstablerange --verify --verbose --subranges --rev right
234 a2f58e9c1e56-0 (6, 4, 4) [complete] - e7bd5218ca15-0 (4, 2, 2), a2f58e9c1e56-2 (6, 4, 2) 227 a2f58e9c1e56-0 (6, 4, 4) [complete] - e7bd5218ca15-0 (4, 2, 2), a2f58e9c1e56-2 (6, 4, 2)
235 a2f58e9c1e56-2 (6, 4, 2) [complete] - 3a367db1fabc-2 (5, 3, 1), a2f58e9c1e56-3 (6, 4, 1) 228 a2f58e9c1e56-2 (6, 4, 2) [complete] - 3a367db1fabc-2 (5, 3, 1), a2f58e9c1e56-3 (6, 4, 1)
236 e7bd5218ca15-0 (4, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), e7bd5218ca15-1 (4, 2, 1) 229 e7bd5218ca15-0 (4, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), e7bd5218ca15-1 (4, 2, 1)
237 1ea73414a91b-0 (0, 1, 1) [leaf] - 230 1ea73414a91b-0 (0, 1, 1) [leaf] -
238 3a367db1fabc-2 (5, 3, 1) [leaf] - 231 3a367db1fabc-2 (5, 3, 1) [leaf] -
239 a2f58e9c1e56-3 (6, 4, 1) [leaf] - 232 a2f58e9c1e56-3 (6, 4, 1) [leaf] -
240 e7bd5218ca15-1 (4, 2, 1) [leaf] - 233 e7bd5218ca15-1 (4, 2, 1) [leaf] -
241 $ hg debugstablerange --verify --verbose --subranges --rev 'right' > right.range
242 $ diff -u right-2.range right.range 234 $ diff -u right-2.range right.range
243 --- right-2.range * (glob) 235 --- right-2.range * (glob)
244 +++ right.range * (glob) 236 +++ right.range * (glob)
245 @@ -1,3 +1,7 @@ 237 @@ -1,3 +1,7 @@
246 +a2f58e9c1e56-0 (6, 4, 4) [complete] - e7bd5218ca15-0 (4, 2, 2), a2f58e9c1e56-2 (6, 4, 2) 238 +a2f58e9c1e56-0 (6, 4, 4) [complete] - e7bd5218ca15-0 (4, 2, 2), a2f58e9c1e56-2 (6, 4, 2)
252 e7bd5218ca15-1 (4, 2, 1) [leaf] - 244 e7bd5218ca15-1 (4, 2, 1) [leaf] -
253 [1] 245 [1]
254 246
255 The merge reuse as much of the slicing created for one of the branch 247 The merge reuse as much of the slicing created for one of the branch
256 248
257 $ hg debugstablerange --verify --verbose --subranges --rev merge 249 $ hg debugstablerange --verify --verbose --subranges --rev merge | tee merge.range
258 5f18015f9110-0 (7, 8, 8) [complete] - 2dc09a01254d-0 (3, 4, 4), 5f18015f9110-4 (7, 8, 4) 250 5f18015f9110-0 (7, 8, 8) [complete] - 2dc09a01254d-0 (3, 4, 4), 5f18015f9110-4 (7, 8, 4)
259 2dc09a01254d-0 (3, 4, 4) [complete] - 66f7d451a68b-0 (1, 2, 2), 2dc09a01254d-2 (3, 4, 2) 251 2dc09a01254d-0 (3, 4, 4) [complete] - 66f7d451a68b-0 (1, 2, 2), 2dc09a01254d-2 (3, 4, 2)
260 5f18015f9110-4 (7, 8, 4) [complete] - 3a367db1fabc-1 (5, 3, 2), 5f18015f9110-6 (7, 8, 2) 252 5f18015f9110-4 (7, 8, 4) [complete] - 3a367db1fabc-1 (5, 3, 2), 5f18015f9110-6 (7, 8, 2)
261 2dc09a01254d-2 (3, 4, 2) [complete] - 01241442b3c2-2 (2, 3, 1), 2dc09a01254d-3 (3, 4, 1) 253 2dc09a01254d-2 (3, 4, 2) [complete] - 01241442b3c2-2 (2, 3, 1), 2dc09a01254d-3 (3, 4, 1)
262 3a367db1fabc-1 (5, 3, 2) [complete] - e7bd5218ca15-1 (4, 2, 1), 3a367db1fabc-2 (5, 3, 1) 254 3a367db1fabc-1 (5, 3, 2) [complete] - e7bd5218ca15-1 (4, 2, 1), 3a367db1fabc-2 (5, 3, 1)
268 3a367db1fabc-2 (5, 3, 1) [leaf] - 260 3a367db1fabc-2 (5, 3, 1) [leaf] -
269 5f18015f9110-7 (7, 8, 1) [leaf] - 261 5f18015f9110-7 (7, 8, 1) [leaf] -
270 66f7d451a68b-1 (1, 2, 1) [leaf] - 262 66f7d451a68b-1 (1, 2, 1) [leaf] -
271 a2f58e9c1e56-3 (6, 4, 1) [leaf] - 263 a2f58e9c1e56-3 (6, 4, 1) [leaf] -
272 e7bd5218ca15-1 (4, 2, 1) [leaf] - 264 e7bd5218ca15-1 (4, 2, 1) [leaf] -
273 $ hg debugstablerange --verify --verbose --subranges --rev 'merge' > merge.range
274 $ diff -u left.range merge.range 265 $ diff -u left.range merge.range
275 --- left.range * (glob) 266 --- left.range * (glob)
276 +++ merge.range * (glob) 267 +++ merge.range * (glob)
277 @@ -1,7 +1,15 @@ 268 @@ -1,7 +1,15 @@
278 +5f18015f9110-0 (7, 8, 8) [complete] - 2dc09a01254d-0 (3, 4, 4), 5f18015f9110-4 (7, 8, 4) 269 +5f18015f9110-0 (7, 8, 8) [complete] - 2dc09a01254d-0 (3, 4, 4), 5f18015f9110-4 (7, 8, 4)
379 370
380 Each of the linear branch reuse range internally 371 Each of the linear branch reuse range internally
381 372
382 (left branch) 373 (left branch)
383 374
384 $ hg debugstablerange --verify --verbose --subranges --rev 'left~2' 375 $ hg debugstablerange --verify --verbose --subranges --rev 'left~2' | tee left-2.range
385 01241442b3c2-0 (2, 3, 3) [complete] - 66f7d451a68b-0 (1, 2, 2), 01241442b3c2-2 (2, 3, 1) 376 01241442b3c2-0 (2, 3, 3) [complete] - 66f7d451a68b-0 (1, 2, 2), 01241442b3c2-2 (2, 3, 1)
386 66f7d451a68b-0 (1, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), 66f7d451a68b-1 (1, 2, 1) 377 66f7d451a68b-0 (1, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), 66f7d451a68b-1 (1, 2, 1)
387 01241442b3c2-2 (2, 3, 1) [leaf] - 378 01241442b3c2-2 (2, 3, 1) [leaf] -
388 1ea73414a91b-0 (0, 1, 1) [leaf] - 379 1ea73414a91b-0 (0, 1, 1) [leaf] -
389 66f7d451a68b-1 (1, 2, 1) [leaf] - 380 66f7d451a68b-1 (1, 2, 1) [leaf] -
390 $ hg debugstablerange --verify --verbose --subranges --rev 'left~2' > left-2.range 381 $ hg debugstablerange --verify --verbose --subranges --rev left | tee left.range
391 $ hg debugstablerange --verify --verbose --subranges --rev left
392 bebd167eb94d-0 (4, 5, 5) [complete] - 2dc09a01254d-0 (3, 4, 4), bebd167eb94d-4 (4, 5, 1) 382 bebd167eb94d-0 (4, 5, 5) [complete] - 2dc09a01254d-0 (3, 4, 4), bebd167eb94d-4 (4, 5, 1)
393 2dc09a01254d-0 (3, 4, 4) [complete] - 66f7d451a68b-0 (1, 2, 2), 2dc09a01254d-2 (3, 4, 2) 383 2dc09a01254d-0 (3, 4, 4) [complete] - 66f7d451a68b-0 (1, 2, 2), 2dc09a01254d-2 (3, 4, 2)
394 2dc09a01254d-2 (3, 4, 2) [complete] - 01241442b3c2-2 (2, 3, 1), 2dc09a01254d-3 (3, 4, 1) 384 2dc09a01254d-2 (3, 4, 2) [complete] - 01241442b3c2-2 (2, 3, 1), 2dc09a01254d-3 (3, 4, 1)
395 66f7d451a68b-0 (1, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), 66f7d451a68b-1 (1, 2, 1) 385 66f7d451a68b-0 (1, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), 66f7d451a68b-1 (1, 2, 1)
396 01241442b3c2-2 (2, 3, 1) [leaf] - 386 01241442b3c2-2 (2, 3, 1) [leaf] -
397 1ea73414a91b-0 (0, 1, 1) [leaf] - 387 1ea73414a91b-0 (0, 1, 1) [leaf] -
398 2dc09a01254d-3 (3, 4, 1) [leaf] - 388 2dc09a01254d-3 (3, 4, 1) [leaf] -
399 66f7d451a68b-1 (1, 2, 1) [leaf] - 389 66f7d451a68b-1 (1, 2, 1) [leaf] -
400 bebd167eb94d-4 (4, 5, 1) [leaf] - 390 bebd167eb94d-4 (4, 5, 1) [leaf] -
401 $ hg debugstablerange --verify --verbose --subranges --rev 'left' > left.range
402 $ diff -u left-2.range left.range 391 $ diff -u left-2.range left.range
403 --- left-2.range * (glob) 392 --- left-2.range * (glob)
404 +++ left.range * (glob) 393 +++ left.range * (glob)
405 @@ -1,5 +1,9 @@ 394 @@ -1,5 +1,9 @@
406 -01241442b3c2-0 (2, 3, 3) [complete] - 66f7d451a68b-0 (1, 2, 2), 01241442b3c2-2 (2, 3, 1) 395 -01241442b3c2-0 (2, 3, 3) [complete] - 66f7d451a68b-0 (1, 2, 2), 01241442b3c2-2 (2, 3, 1)
415 +bebd167eb94d-4 (4, 5, 1) [leaf] - 404 +bebd167eb94d-4 (4, 5, 1) [leaf] -
416 [1] 405 [1]
417 406
418 (right branch) 407 (right branch)
419 408
420 $ hg debugstablerange --verify --verbose --subranges --rev right~2 409 $ hg debugstablerange --verify --verbose --subranges --rev right~2 | tee right-2.range
421 42b07e8da27d-0 (7, 4, 4) [complete] - de561312eff4-0 (5, 2, 2), 42b07e8da27d-2 (7, 4, 2) 410 42b07e8da27d-0 (7, 4, 4) [complete] - de561312eff4-0 (5, 2, 2), 42b07e8da27d-2 (7, 4, 2)
422 42b07e8da27d-2 (7, 4, 2) [complete] - b9bc20507e0b-2 (6, 3, 1), 42b07e8da27d-3 (7, 4, 1) 411 42b07e8da27d-2 (7, 4, 2) [complete] - b9bc20507e0b-2 (6, 3, 1), 42b07e8da27d-3 (7, 4, 1)
423 de561312eff4-0 (5, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), de561312eff4-1 (5, 2, 1) 412 de561312eff4-0 (5, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), de561312eff4-1 (5, 2, 1)
424 1ea73414a91b-0 (0, 1, 1) [leaf] - 413 1ea73414a91b-0 (0, 1, 1) [leaf] -
425 42b07e8da27d-3 (7, 4, 1) [leaf] - 414 42b07e8da27d-3 (7, 4, 1) [leaf] -
426 b9bc20507e0b-2 (6, 3, 1) [leaf] - 415 b9bc20507e0b-2 (6, 3, 1) [leaf] -
427 de561312eff4-1 (5, 2, 1) [leaf] - 416 de561312eff4-1 (5, 2, 1) [leaf] -
428 $ hg debugstablerange --verify --verbose --subranges --rev 'right~2' > right-2.range 417 $ hg debugstablerange --verify --verbose --subranges --rev right | tee right.range
429 $ hg debugstablerange --verify --verbose --subranges --rev right
430 f4b7da68b467-0 (9, 6, 6) [complete] - 42b07e8da27d-0 (7, 4, 4), f4b7da68b467-4 (9, 6, 2) 418 f4b7da68b467-0 (9, 6, 6) [complete] - 42b07e8da27d-0 (7, 4, 4), f4b7da68b467-4 (9, 6, 2)
431 42b07e8da27d-0 (7, 4, 4) [complete] - de561312eff4-0 (5, 2, 2), 42b07e8da27d-2 (7, 4, 2) 419 42b07e8da27d-0 (7, 4, 4) [complete] - de561312eff4-0 (5, 2, 2), 42b07e8da27d-2 (7, 4, 2)
432 42b07e8da27d-2 (7, 4, 2) [complete] - b9bc20507e0b-2 (6, 3, 1), 42b07e8da27d-3 (7, 4, 1) 420 42b07e8da27d-2 (7, 4, 2) [complete] - b9bc20507e0b-2 (6, 3, 1), 42b07e8da27d-3 (7, 4, 1)
433 de561312eff4-0 (5, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), de561312eff4-1 (5, 2, 1) 421 de561312eff4-0 (5, 2, 2) [complete] - 1ea73414a91b-0 (0, 1, 1), de561312eff4-1 (5, 2, 1)
434 f4b7da68b467-4 (9, 6, 2) [complete] - 857477a9aebb-4 (8, 5, 1), f4b7da68b467-5 (9, 6, 1) 422 f4b7da68b467-4 (9, 6, 2) [complete] - 857477a9aebb-4 (8, 5, 1), f4b7da68b467-5 (9, 6, 1)
436 42b07e8da27d-3 (7, 4, 1) [leaf] - 424 42b07e8da27d-3 (7, 4, 1) [leaf] -
437 857477a9aebb-4 (8, 5, 1) [leaf] - 425 857477a9aebb-4 (8, 5, 1) [leaf] -
438 b9bc20507e0b-2 (6, 3, 1) [leaf] - 426 b9bc20507e0b-2 (6, 3, 1) [leaf] -
439 de561312eff4-1 (5, 2, 1) [leaf] - 427 de561312eff4-1 (5, 2, 1) [leaf] -
440 f4b7da68b467-5 (9, 6, 1) [leaf] - 428 f4b7da68b467-5 (9, 6, 1) [leaf] -
441 $ hg debugstablerange --verify --verbose --subranges --rev 'right' > right.range
442 $ diff -u right-2.range right.range 429 $ diff -u right-2.range right.range
443 --- right-2.range * (glob) 430 --- right-2.range * (glob)
444 +++ right.range * (glob) 431 +++ right.range * (glob)
445 @@ -1,7 +1,11 @@ 432 @@ -1,7 +1,11 @@
446 +f4b7da68b467-0 (9, 6, 6) [complete] - 42b07e8da27d-0 (7, 4, 4), f4b7da68b467-4 (9, 6, 2) 433 +f4b7da68b467-0 (9, 6, 6) [complete] - 42b07e8da27d-0 (7, 4, 4), f4b7da68b467-4 (9, 6, 2)
460 447
461 So we'll create more than 1 subrange out of it. 448 So we'll create more than 1 subrange out of it.
462 449
463 We are still able to reuse one of the branch however 450 We are still able to reuse one of the branch however
464 451
465 $ hg debugstablerange --verify --verbose --subranges --rev merge 452 $ hg debugstablerange --verify --verbose --subranges --rev merge | tee merge.range
466 8aca7f8c9bd2-0 (10, 11, 11) [complete] - bebd167eb94d-0 (4, 5, 5), 42b07e8da27d-1 (7, 4, 3), 8aca7f8c9bd2-8 (10, 11, 3) 453 8aca7f8c9bd2-0 (10, 11, 11) [complete] - bebd167eb94d-0 (4, 5, 5), 42b07e8da27d-1 (7, 4, 3), 8aca7f8c9bd2-8 (10, 11, 3)
467 bebd167eb94d-0 (4, 5, 5) [complete] - 2dc09a01254d-0 (3, 4, 4), bebd167eb94d-4 (4, 5, 1) 454 bebd167eb94d-0 (4, 5, 5) [complete] - 2dc09a01254d-0 (3, 4, 4), bebd167eb94d-4 (4, 5, 1)
468 2dc09a01254d-0 (3, 4, 4) [complete] - 66f7d451a68b-0 (1, 2, 2), 2dc09a01254d-2 (3, 4, 2) 455 2dc09a01254d-0 (3, 4, 4) [complete] - 66f7d451a68b-0 (1, 2, 2), 2dc09a01254d-2 (3, 4, 2)
469 42b07e8da27d-1 (7, 4, 3) [complete] - de561312eff4-1 (5, 2, 1), 42b07e8da27d-2 (7, 4, 2) 456 42b07e8da27d-1 (7, 4, 3) [complete] - de561312eff4-1 (5, 2, 1), 42b07e8da27d-2 (7, 4, 2)
470 8aca7f8c9bd2-8 (10, 11, 3) [complete] - f4b7da68b467-4 (9, 6, 2), 8aca7f8c9bd2-10 (10, 11, 1) 457 8aca7f8c9bd2-8 (10, 11, 3) [complete] - f4b7da68b467-4 (9, 6, 2), 8aca7f8c9bd2-10 (10, 11, 1)
481 8aca7f8c9bd2-10 (10, 11, 1) [leaf] - 468 8aca7f8c9bd2-10 (10, 11, 1) [leaf] -
482 b9bc20507e0b-2 (6, 3, 1) [leaf] - 469 b9bc20507e0b-2 (6, 3, 1) [leaf] -
483 bebd167eb94d-4 (4, 5, 1) [leaf] - 470 bebd167eb94d-4 (4, 5, 1) [leaf] -
484 de561312eff4-1 (5, 2, 1) [leaf] - 471 de561312eff4-1 (5, 2, 1) [leaf] -
485 f4b7da68b467-5 (9, 6, 1) [leaf] - 472 f4b7da68b467-5 (9, 6, 1) [leaf] -
486 $ hg debugstablerange --verify --verbose --subranges --rev 'merge' > merge.range
487 $ diff -u left.range merge.range 473 $ diff -u left.range merge.range
488 --- left.range * (glob) 474 --- left.range * (glob)
489 +++ merge.range * (glob) 475 +++ merge.range * (glob)
490 @@ -1,9 +1,20 @@ 476 @@ -1,9 +1,20 @@
491 +8aca7f8c9bd2-0 (10, 11, 11) [complete] - bebd167eb94d-0 (4, 5, 5), 42b07e8da27d-1 (7, 4, 3), 8aca7f8c9bd2-8 (10, 11, 3) 477 +8aca7f8c9bd2-0 (10, 11, 11) [complete] - bebd167eb94d-0 (4, 5, 5), 42b07e8da27d-1 (7, 4, 3), 8aca7f8c9bd2-8 (10, 11, 3)
538 f4b7da68b467-5 (9, 6, 1) [leaf] - 524 f4b7da68b467-5 (9, 6, 1) [leaf] -
539 [1] 525 [1]
540 526
541 Range above the merge, reuse subrange from the merge 527 Range above the merge, reuse subrange from the merge
542 528
543 $ hg debugstablerange --verify --verbose --subranges --rev tip 529 $ hg debugstablerange --verify --verbose --subranges --rev tip | tee tip.range
544 e6b8d5b46647-0 (12, 13, 13) [complete] - bebd167eb94d-0 (4, 5, 5), 42b07e8da27d-1 (7, 4, 3), e6b8d5b46647-8 (12, 13, 5) 530 e6b8d5b46647-0 (12, 13, 13) [complete] - bebd167eb94d-0 (4, 5, 5), 42b07e8da27d-1 (7, 4, 3), e6b8d5b46647-8 (12, 13, 5)
545 bebd167eb94d-0 (4, 5, 5) [complete] - 2dc09a01254d-0 (3, 4, 4), bebd167eb94d-4 (4, 5, 1) 531 bebd167eb94d-0 (4, 5, 5) [complete] - 2dc09a01254d-0 (3, 4, 4), bebd167eb94d-4 (4, 5, 1)
546 e6b8d5b46647-8 (12, 13, 5) [complete] - 485383494a89-8 (11, 12, 4), e6b8d5b46647-12 (12, 13, 1) 532 e6b8d5b46647-8 (12, 13, 5) [complete] - 485383494a89-8 (11, 12, 4), e6b8d5b46647-12 (12, 13, 1)
547 2dc09a01254d-0 (3, 4, 4) [complete] - 66f7d451a68b-0 (1, 2, 2), 2dc09a01254d-2 (3, 4, 2) 533 2dc09a01254d-0 (3, 4, 4) [complete] - 66f7d451a68b-0 (1, 2, 2), 2dc09a01254d-2 (3, 4, 2)
548 485383494a89-8 (11, 12, 4) [complete] - f4b7da68b467-4 (9, 6, 2), 485383494a89-10 (11, 12, 2) 534 485383494a89-8 (11, 12, 4) [complete] - f4b7da68b467-4 (9, 6, 2), 485383494a89-10 (11, 12, 2)
563 b9bc20507e0b-2 (6, 3, 1) [leaf] - 549 b9bc20507e0b-2 (6, 3, 1) [leaf] -
564 bebd167eb94d-4 (4, 5, 1) [leaf] - 550 bebd167eb94d-4 (4, 5, 1) [leaf] -
565 de561312eff4-1 (5, 2, 1) [leaf] - 551 de561312eff4-1 (5, 2, 1) [leaf] -
566 e6b8d5b46647-12 (12, 13, 1) [leaf] - 552 e6b8d5b46647-12 (12, 13, 1) [leaf] -
567 f4b7da68b467-5 (9, 6, 1) [leaf] - 553 f4b7da68b467-5 (9, 6, 1) [leaf] -
568 $ hg debugstablerange --verify --verbose --subranges --rev 'tip' > tip.range
569 $ diff -u merge.range tip.range 554 $ diff -u merge.range tip.range
570 --- merge.range * (glob) 555 --- merge.range * (glob)
571 +++ tip.range * (glob) 556 +++ tip.range * (glob)
572 @@ -1,20 +1,24 @@ 557 @@ -1,20 +1,24 @@
573 -8aca7f8c9bd2-0 (10, 11, 11) [complete] - bebd167eb94d-0 (4, 5, 5), 42b07e8da27d-1 (7, 4, 3), 8aca7f8c9bd2-8 (10, 11, 3) 558 -8aca7f8c9bd2-0 (10, 11, 11) [complete] - bebd167eb94d-0 (4, 5, 5), 42b07e8da27d-1 (7, 4, 3), 8aca7f8c9bd2-8 (10, 11, 3)