comparison tests/test-debugbundle.t @ 29592:37cccad55410

util: implement a deterministic __repr__ on sortdict `hg debugbundle` is calling repr() on bundle2 part params, which are now util.sortdict instances. Unfortunately, repr() doesn't appear to be deterministic for util.sortdict. So, we implement one. We include the type name because that's the common convention for __repr__ implementations. Having the type name in `hg debugbundle` is a bit ugly. But it's a debug command and I don't care enough to fix it.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 17 Jul 2016 15:10:30 -0700
parents 906a1c8a75fd
children 953839de96ab
comparison
equal deleted inserted replaced
29591:6215b5537ba5 29592:37cccad55410
29 29
30 Terse output: 30 Terse output:
31 31
32 $ hg debugbundle bundle2.hg 32 $ hg debugbundle bundle2.hg
33 Stream params: {} 33 Stream params: {}
34 changegroup -- "{'version': '02'}" 34 changegroup -- "sortdict([('version', '02')])"
35 0e067c57feba1a5694ca4844f05588bb1bf82342 35 0e067c57feba1a5694ca4844f05588bb1bf82342
36 991a3460af53952d10ec8a295d3d2cc2e5fa9690 36 991a3460af53952d10ec8a295d3d2cc2e5fa9690
37 37
38 Verbose output: 38 Verbose output:
39 39
54 c 54 c
55 b80de5d138758541c5f05265ad144ab9fa86d1db 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 991a3460af53952d10ec8a295d3d2cc2e5fa9690 0000000000000000000000000000000000000000 0 55 b80de5d138758541c5f05265ad144ab9fa86d1db 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 991a3460af53952d10ec8a295d3d2cc2e5fa9690 0000000000000000000000000000000000000000 0
56 56
57 $ hg debugbundle --all bundle2.hg 57 $ hg debugbundle --all bundle2.hg
58 Stream params: {} 58 Stream params: {}
59 changegroup -- "{'version': '02'}" 59 changegroup -- "sortdict([('version', '02')])"
60 format: id, p1, p2, cset, delta base, len(delta) 60 format: id, p1, p2, cset, delta base, len(delta)
61 61
62 changelog 62 changelog
63 0e067c57feba1a5694ca4844f05588bb1bf82342 3903775176ed42b1458a6281db4a0ccf4d9f287a 0000000000000000000000000000000000000000 0e067c57feba1a5694ca4844f05588bb1bf82342 3903775176ed42b1458a6281db4a0ccf4d9f287a 80 63 0e067c57feba1a5694ca4844f05588bb1bf82342 3903775176ed42b1458a6281db4a0ccf4d9f287a 0000000000000000000000000000000000000000 0e067c57feba1a5694ca4844f05588bb1bf82342 3903775176ed42b1458a6281db4a0ccf4d9f287a 80
64 991a3460af53952d10ec8a295d3d2cc2e5fa9690 0e067c57feba1a5694ca4844f05588bb1bf82342 0000000000000000000000000000000000000000 991a3460af53952d10ec8a295d3d2cc2e5fa9690 0e067c57feba1a5694ca4844f05588bb1bf82342 80 64 991a3460af53952d10ec8a295d3d2cc2e5fa9690 0e067c57feba1a5694ca4844f05588bb1bf82342 0000000000000000000000000000000000000000 991a3460af53952d10ec8a295d3d2cc2e5fa9690 0e067c57feba1a5694ca4844f05588bb1bf82342 80