--- a/mercurial/hgweb/webutil.py Wed Apr 04 00:20:47 2018 +0900
+++ b/mercurial/hgweb/webutil.py Wed Apr 04 00:21:52 2018 +0900
@@ -509,7 +509,7 @@
parity = paritygen(web.stripecount)
diffstatsgen = diffstatgen(ctx, basectx)
- diffstats = diffstat(web.tmpl, ctx, diffstatsgen, parity)
+ diffstats = diffstat(ctx, diffstatsgen, parity)
return dict(
diff=diff,
@@ -694,7 +694,7 @@
'parity': next(parity),
})
-def diffstat(tmpl, ctx, statgen, parity):
+def diffstat(ctx, statgen, parity):
'''Return a diffstat template for each file in the diff.'''
args = (ctx, statgen, parity)
return templateutil.mappedgenerator(_diffstattmplgen, args=args)