diff -r 88572b7e50fd -r 0279c2267d00 mercurial/hgweb/webutil.py --- 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