Mercurial > hg
changeset 36499:77f681f11003
py3: use '%d' to format diffstat sum
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 01 Mar 2018 06:43:13 -0500 |
parents | b546181ae451 |
children | 43e108027b0d |
files | mercurial/templatekw.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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):