Mercurial > hg-stable
changeset 38036:623dc2651d26
hgweb: drop unused argument 'tmpl' from webutil.compare()
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 04 Apr 2018 21:17:55 +0900 |
parents | b3992c21b7f3 |
children | e9c588802529 |
files | mercurial/hgweb/webcommands.py mercurial/hgweb/webutil.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Wed Apr 04 21:17:10 2018 +0900 +++ b/mercurial/hgweb/webcommands.py Wed Apr 04 21:17:55 2018 +0900 @@ -886,7 +886,7 @@ pfctx = ctx.parents()[0][path] leftlines = filelines(pfctx) - comparison = webutil.compare(web.tmpl, context, leftlines, rightlines) + comparison = webutil.compare(context, leftlines, rightlines) if fctx is not None: rename = webutil.renamelink(fctx) ctx = fctx
--- a/mercurial/hgweb/webutil.py Wed Apr 04 21:17:10 2018 +0900 +++ b/mercurial/hgweb/webutil.py Wed Apr 04 21:17:55 2018 +0900 @@ -633,7 +633,7 @@ l = _getcompblock(leftlines, rightlines, oc) yield {'lines': l} -def compare(tmpl, contextnum, leftlines, rightlines): +def compare(contextnum, leftlines, rightlines): args = (contextnum, leftlines, rightlines) return templateutil.mappinggenerator(_comparegen, args=args, name='comparisonblock')