mercurial/templatekw.py
changeset 30811 cf1e15f91c90
parent 30712 5dde81de1e6d
child 30833 bd5e9647f646
--- a/mercurial/templatekw.py	Fri Jan 13 10:11:37 2017 -0800
+++ b/mercurial/templatekw.py	Thu Jan 12 21:06:55 2017 +0900
@@ -299,7 +299,7 @@
     """String. Statistics of changes with the following format:
     "modified files: +added/-removed lines"
     """
-    stats = patch.diffstatdata(util.iterlines(ctx.diff()))
+    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)