[PATCH 2 of 2] py3: do not stringify integers in revlog stats by '%s'

Yuya Nishihara yuya at tcha.org
Wed Oct 24 08:51:00 EDT 2018


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1540384144 -32400
#      Wed Oct 24 21:29:04 2018 +0900
# Node ID 27ce24dccddd2c104bdd3e1517b7cb62cc931026
# Parent  491701afb3ec768f82d7985410fcb259a3a4375e
py3: do not stringify integers in revlog stats by '%s'

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -1172,7 +1172,7 @@ def debugindexstats(ui, repo):
     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):


More information about the Mercurial-devel mailing list