mercurial/hgweb/webutil.py
branchstable
changeset 35429 0279c2267d00
parent 34855 35c6a54ec1ff
child 35454 786289423e97
--- a/mercurial/hgweb/webutil.py	Thu Dec 14 22:07:46 2017 +0900
+++ b/mercurial/hgweb/webutil.py	Sun Dec 17 18:28:15 2017 +0900
@@ -545,7 +545,8 @@
 def diffstatgen(ctx, basectx):
     '''Generator function that provides the diffstat data.'''
 
-    stats = patch.diffstatdata(util.iterlines(ctx.diff(basectx)))
+    stats = patch.diffstatdata(
+        util.iterlines(ctx.diff(basectx, noprefix=False)))
     maxname, maxtotal, addtotal, removetotal, binary = patch.diffstatsum(stats)
     while True:
         yield stats, maxname, maxtotal, addtotal, removetotal, binary