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

login
register
mail settings
Submitter Yuya Nishihara
Date Oct. 24, 2018, 12:51 p.m.
Message ID <27ce24dccddd2c104bdd.1540385460@mimosa>
Download mbox | patch
Permalink /patch/36265/
State New
Headers show

Comments

Yuya Nishihara - Oct. 24, 2018, 12:51 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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'
Augie Fackler - Oct. 29, 2018, 8:42 p.m.
On Wed, Oct 24, 2018 at 09:51:00PM +0900, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya@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'

queued, thanks

Patch

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):