comparison 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
comparison
equal deleted inserted replaced
43066:db33e4f25729 43067:0fde7d47ad6f
2661 sidedata.sort() 2661 sidedata.sort()
2662 ui.write(('%d sidedata entries\n' % len(sidedata))) 2662 ui.write(('%d sidedata entries\n' % len(sidedata)))
2663 for key, value in sidedata: 2663 for key, value in sidedata:
2664 ui.write((' entry-%04o size %d\n' % (key, len(value)))) 2664 ui.write((' entry-%04o size %d\n' % (key, len(value))))
2665 if ui.verbose: 2665 if ui.verbose:
2666 ui.write((' %s\n' % repr(value))) 2666 ui.write((' %s\n' % stringutil.pprint(value)))
2667 2667
2668 @command('debugssl', [], '[SOURCE]', optionalrepo=True) 2668 @command('debugssl', [], '[SOURCE]', optionalrepo=True)
2669 def debugssl(ui, repo, source=None, **opts): 2669 def debugssl(ui, repo, source=None, **opts):
2670 '''test a secure connection to a server 2670 '''test a secure connection to a server
2671 2671