diff mercurial/hgweb/webutil.py @ 35454:786289423e97

merge with stable
author Augie Fackler <augie@google.com>
date Tue, 19 Dec 2017 16:27:24 -0500
parents 1fe3c8296cfe 0279c2267d00
children 1721ce06100a
line wrap: on
line diff
--- a/mercurial/hgweb/webutil.py	Mon Dec 18 15:18:37 2017 -0800
+++ b/mercurial/hgweb/webutil.py	Tue Dec 19 16:27:24 2017 -0500
@@ -547,7 +547,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