comparison tests/test-generaldelta.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 6a98f9408a50
children 953839de96ab
comparison
equal deleted inserted replaced
29591:6215b5537ba5 29592:37cccad55410
152 Test that strip bundle use bundle2 152 Test that strip bundle use bundle2
153 $ hg --config extensions.strip= strip . 153 $ hg --config extensions.strip= strip .
154 0 files updated, 0 files merged, 5 files removed, 0 files unresolved 154 0 files updated, 0 files merged, 5 files removed, 0 files unresolved
155 saved backup bundle to $TESTTMP/aggressive/.hg/strip-backup/1c5d4dc9a8b8-6c68e60c-backup.hg (glob) 155 saved backup bundle to $TESTTMP/aggressive/.hg/strip-backup/1c5d4dc9a8b8-6c68e60c-backup.hg (glob)
156 $ hg debugbundle .hg/strip-backup/* 156 $ hg debugbundle .hg/strip-backup/*
157 Stream params: {'Compression': 'BZ'} 157 Stream params: sortdict([('Compression', 'BZ')])
158 changegroup -- "{'version': '02'}" 158 changegroup -- "sortdict([('version', '02')])"
159 1c5d4dc9a8b8d6e1750966d343e94db665e7a1e9 159 1c5d4dc9a8b8d6e1750966d343e94db665e7a1e9
160 160
161 $ cd .. 161 $ cd ..