Submitter | Yuya Nishihara |
---|---|
Date | March 1, 2018, 2:17 p.m. |
Message ID | <7002f11e42c57d80e3e0.1519913830@mimosa> |
Download | mbox | patch |
Permalink | /patch/28550/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py --- a/mercurial/templatekw.py +++ b/mercurial/templatekw.py @@ -433,7 +433,7 @@ def showdiffstat(repo, ctx, templ, **arg """ 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):