changeset 43067:0fde7d47ad6f

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
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 06 Oct 2019 09:27:10 -0400
parents db33e4f25729
children 094d0f4a8edd
files mercurial/debugcommands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):