diff mercurial/hgweb/webcommands.py @ 37912:16c7a6ac8f94

hgweb: drop tmpl argument from webutil.showtag() and showbookmark() It's replaced by a context argument passed to a mappinggenerator.
author Yuya Nishihara <yuya@tcha.org>
date Mon, 02 Apr 2018 00:41:19 +0900
parents 7fae76c2c564
children 9482498b96b0
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Mon Apr 02 00:39:26 2018 +0900
+++ b/mercurial/hgweb/webcommands.py	Mon Apr 02 00:41:19 2018 +0900
@@ -295,7 +295,7 @@
         for ctx in searchfunc[0](funcarg):
             count += 1
             n = ctx.node()
-            showtags = webutil.showtag(web.repo, web.tmpl, 'changelogtag', n)
+            showtags = webutil.showtag(web.repo, 'changelogtag', n)
             files = webutil.listfilediffs(web.tmpl, ctx.files(), n,
                                           web.maxfiles)