--- a/mercurial/changelog.py Tue Jan 15 02:59:14 2013 +0100
+++ b/mercurial/changelog.py Tue Jan 15 02:59:14 2013 +0100
@@ -27,10 +27,12 @@
def decodeextra(text):
"""
- >>> decodeextra(encodeextra({'foo': 'bar', 'baz': chr(0) + '2'}))
- {'foo': 'bar', 'baz': '\\x002', 'branch': 'default'}
- >>> decodeextra(encodeextra({'foo': 'bar', 'baz': chr(92) + chr(0) + '2'}))
- {'foo': 'bar', 'baz': '\\\\\\x002', 'branch': 'default'}
+ >>> from pprint import pprint as pp
+ >>> pp(decodeextra(encodeextra({'foo': 'bar', 'baz': chr(0) + '2'})))
+ {'baz': '\\x002', 'branch': 'default', 'foo': 'bar'}
+ >>> pp(decodeextra(encodeextra({'foo': 'bar',
+ ... 'baz': chr(92) + chr(0) + '2'})))
+ {'baz': '\\\\\\x002', 'branch': 'default', 'foo': 'bar'}
"""
extra = _defaultextra.copy()
for l in text.split('\0'):