Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/webcommands.py @ 37956: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 |
comparison
equal
deleted
inserted
replaced
37955:26aed0d561e8 | 37956:16c7a6ac8f94 |
---|---|
293 count = 0 | 293 count = 0 |
294 | 294 |
295 for ctx in searchfunc[0](funcarg): | 295 for ctx in searchfunc[0](funcarg): |
296 count += 1 | 296 count += 1 |
297 n = ctx.node() | 297 n = ctx.node() |
298 showtags = webutil.showtag(web.repo, web.tmpl, 'changelogtag', n) | 298 showtags = webutil.showtag(web.repo, 'changelogtag', n) |
299 files = webutil.listfilediffs(web.tmpl, ctx.files(), n, | 299 files = webutil.listfilediffs(web.tmpl, ctx.files(), n, |
300 web.maxfiles) | 300 web.maxfiles) |
301 | 301 |
302 lm = webutil.commonentry(web.repo, ctx) | 302 lm = webutil.commonentry(web.repo, ctx) |
303 lm.update({ | 303 lm.update({ |