# HG changeset patch # User Yuya Nishihara # Date 2018-04-04 12:17:55 # Node ID 623dc2651d2627d6801019e9ba9972a9565bf2b3 # Parent b3992c21b7f3ee1c37ec1f0cd0e9e561bca4482e hgweb: drop unused argument 'tmpl' from webutil.compare() diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py +++ b/mercurial/hgweb/webcommands.py @@ -886,7 +886,7 @@ def comparison(web): 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 diff --git a/mercurial/hgweb/webutil.py b/mercurial/hgweb/webutil.py --- a/mercurial/hgweb/webutil.py +++ b/mercurial/hgweb/webutil.py @@ -633,7 +633,7 @@ def _comparegen(context, contextnum, lef 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')