diff tests/test-strip.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 bf7b8157c483
children 953839de96ab
line wrap: on
line diff
--- a/tests/test-strip.t	Sun Jul 17 14:51:00 2016 -0700
+++ b/tests/test-strip.t	Sun Jul 17 15:10:30 2016 -0700
@@ -210,8 +210,8 @@
   summary:     b
   
   $ hg debugbundle .hg/strip-backup/*
-  Stream params: {'Compression': 'BZ'}
-  changegroup -- "{'version': '02'}"
+  Stream params: sortdict([('Compression', 'BZ')])
+  changegroup -- "sortdict([('version', '02')])"
       264128213d290d868c54642d13aeaa3675551a78
   $ hg pull .hg/strip-backup/*
   pulling from .hg/strip-backup/264128213d29-0b39d6bf-backup.hg