diff mercurial/debugcommands.py @ 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 559ac8411f12
children 2372284d9457
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):