py3: do not stringify integers in revlog stats by '%s'
authorYuya Nishihara <yuya@tcha.org>
Wed, 24 Oct 2018 21:29:04 +0900
changeset 40456 24cb8a6d4c20
parent 40455 88702fd208ce
child 40457 c2a0bc6412db
py3: do not stringify integers in revlog stats by '%s'
mercurial/debugcommands.py
--- a/mercurial/debugcommands.py	Wed Oct 24 21:28:03 2018 +0900
+++ b/mercurial/debugcommands.py	Wed Oct 24 21:29:04 2018 +0900
@@ -1172,7 +1172,7 @@
     if not util.safehasattr(index, 'stats'):
         raise error.Abort(_('debugindexstats only works with native code'))
     for k, v in sorted(index.stats().items()):
-        ui.write('%s: %s\n' % (k, v))
+        ui.write('%s: %d\n' % (k, v))
 
 @command('debuginstall', [] + cmdutil.formatteropts, '', norepo=True)
 def debuginstall(ui, **opts):