diff mercurial/hgweb/webutil.py @ 35429:0279c2267d00 stable

hgweb: disable diff.noprefix option for diffstat Copied from cf1e15f91c90.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 17 Dec 2017 18:28:15 +0900
parents 35c6a54ec1ff
children 786289423e97
line wrap: on
line diff
--- 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