comparison tests/test-stablesort.t @ 3236:7c78b0c482a1

depth: basic debugdepth implementation and test This will come very handy to validate more advanced implementation later.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 22 Nov 2017 16:57:07 +0100
parents 8feb2cae7eae
children 543708c3f754
comparison
equal deleted inserted replaced
3235:8a772f0c54d9 3236:7c78b0c482a1
88 | | 88 | |
89 | o 1 66f7d451a68b r1 g 89 | o 1 66f7d451a68b r1 g
90 |/ 90 |/
91 o 0 1ea73414a91b r0 91 o 0 1ea73414a91b r0
92 92
93 $ hg debugdepth -r 'all()'
94 1ea73414a91b 1
95 66f7d451a68b 2
96 fa942426a6fd 2
97 2b6d669947cd 4
98 4c748ffd1a46 3
99 f0f3ef9a6cd5 4
100 2702dd0c91e7 5
101 e7d9710d9fc6 5
102 d62d843c9a01 6
103 dcbb326fdec2 7
104 ff43616e5d0f 7
105 bab5d5bf48bd 5
106 e46a4836065c 6
107 b4594d867745 6
108 43227190fef8 5
109 1d8d22637c2d 8
93 $ hg showsort --rev 'all()' --traceback 110 $ hg showsort --rev 'all()' --traceback
94 1ea73414a91b 111 1ea73414a91b
95 66f7d451a68b 112 66f7d451a68b
96 fa942426a6fd 113 fa942426a6fd
97 2b6d669947cd 114 2b6d669947cd
206 |/ / 223 |/ /
207 o / 1 fa942426a6fd r2 224 o / 1 fa942426a6fd r2
208 |/ 225 |/
209 o 0 1ea73414a91b r0 226 o 0 1ea73414a91b r0
210 227
228 $ hg -R repo_B debugdepth -r 'all()'
229 1ea73414a91b 1
230 fa942426a6fd 2
231 4c748ffd1a46 3
232 f0f3ef9a6cd5 4
233 66f7d451a68b 2
234 2b6d669947cd 4
235 bab5d5bf48bd 5
236 b4594d867745 6
237 43227190fef8 5
238 2702dd0c91e7 5
239 e7d9710d9fc6 5
240 d62d843c9a01 6
241 dcbb326fdec2 7
242 ff43616e5d0f 7
243 e46a4836065c 6
244 1d8d22637c2d 8
211 $ hg -R repo_B log -G > B.log 245 $ hg -R repo_B log -G > B.log
212 246
213 $ hg clone repo_A repo_C --rev 10 247 $ hg clone repo_A repo_C --rev 10
214 adding changesets 248 adding changesets
215 adding manifests 249 adding manifests
551 | | 585 | |
552 o | 1 66f7d451a68b r1 586 o | 1 66f7d451a68b r1
553 |/ 587 |/
554 o 0 1ea73414a91b r0 base 588 o 0 1ea73414a91b r0 base
555 589
590 $ hg debugdepth -r 'all()'
591 1ea73414a91b 1
592 66f7d451a68b 2
593 01241442b3c2 3
594 2dc09a01254d 4
595 e7bd5218ca15 2
596 3a367db1fabc 3
597 a2f58e9c1e56 4
598 5f18015f9110 8
599 abf57d94268b 5
600 529dfc5bb875 6
601 6ee532b68cfa 3
602 001194dd78d5 9
603 a66b68853635 10
604 013b27f11536 11
605 4bbfc6078919 12
606 9fff0871d230 9
607 4dbf739dd63f 10
608 d64d500024d1 11
609 0496f0a6a143 16
610 1c645e73dbc6 17
611 160a7a0adbf4 18
556 $ hg showsort --rev 'all()' 612 $ hg showsort --rev 'all()'
557 1ea73414a91b 613 1ea73414a91b
558 66f7d451a68b 614 66f7d451a68b
559 01241442b3c2 615 01241442b3c2
560 2dc09a01254d 616 2dc09a01254d
680 | | 736 | |
681 | o 1 47da0f2c25e2 foo1 737 | o 1 47da0f2c25e2 foo1
682 |/ 738 |/
683 o 0 d20a80d4def3 base 739 o 0 d20a80d4def3 base
684 740
741 $ hg debugdepth -r 'all()'
742 d20a80d4def3 1
743 47da0f2c25e2 2
744 0dedbcd995b6 3
745 ed776db7ed63 4
746 7f2454f6b04f 5
685 $ hg showsort --rev '.' 747 $ hg showsort --rev '.'
686 d20a80d4def3 748 d20a80d4def3
687 47da0f2c25e2 749 47da0f2c25e2
688 0dedbcd995b6 750 0dedbcd995b6
689 ed776db7ed63 751 ed776db7ed63