# HG changeset patch # User Yuya Nishihara # Date 1522768912 -32400 # Node ID 4c3ab15f353208a5705850a610ee75d266bd0c4b # Parent 6369e21e97acd1a99d37af84c0392eed1debf5d9 hgweb: drop unused argument 'tmpl' from webutil.diffstat() diff -r 6369e21e97ac -r 4c3ab15f3532 mercurial/hgweb/webutil.py --- 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)