debugsidedata: fix verbose mode on python3
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sun, 06 Oct 2019 09:27:10 -0400
changeset 43067 0fde7d47ad6f
parent 43066 db33e4f25729
child 43068 094d0f4a8edd
debugsidedata: fix verbose mode on python3 We need to be gently with python3 for it to display this binary data. Differential Revision: https://phab.mercurial-scm.org/D6995
mercurial/debugcommands.py
--- a/mercurial/debugcommands.py	Sun Oct 06 12:59:47 2019 +0200
+++ b/mercurial/debugcommands.py	Sun Oct 06 09:27:10 2019 -0400
@@ -2663,7 +2663,7 @@
         for key, value in sidedata:
             ui.write((' entry-%04o size %d\n' % (key, len(value))))
             if ui.verbose:
-                ui.write(('  %s\n' % repr(value)))
+                ui.write(('  %s\n' % stringutil.pprint(value)))
 
 @command('debugssl', [], '[SOURCE]', optionalrepo=True)
 def debugssl(ui, repo, source=None, **opts):