py3: use '%d' to format diffstat sum
authorYuya Nishihara <yuya@tcha.org>
Thu, 01 Mar 2018 06:43:13 -0500
changeset 36499 77f681f11003
parent 36498 b546181ae451
child 36500 43e108027b0d
py3: use '%d' to format diffstat sum
mercurial/templatekw.py
--- a/mercurial/templatekw.py	Thu Mar 01 06:40:09 2018 -0500
+++ b/mercurial/templatekw.py	Thu Mar 01 06:43:13 2018 -0500
@@ -433,7 +433,7 @@
     """
     stats = patch.diffstatdata(util.iterlines(ctx.diff(noprefix=False)))
     maxname, maxtotal, adds, removes, binary = patch.diffstatsum(stats)
-    return '%s: +%s/-%s' % (len(stats), adds, removes)
+    return '%d: +%d/-%d' % (len(stats), adds, removes)
 
 @templatekeyword('envvars')
 def showenvvars(ui, **args):