Mercurial > hg
changeset 38059:4c3ab15f3532
hgweb: drop unused argument 'tmpl' from webutil.diffstat()
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 04 Apr 2018 00:21:52 +0900 |
parents | 6369e21e97ac |
children | aeccb08af311 |
files | mercurial/hgweb/webutil.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)