Mercurial > hg
changeset 37910:ec03f3aa2d14
hgweb: drop useless **args from webutil.showtag() and showbookmark()
Callers never pass excessive arguments to these functions.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 02 Apr 2018 00:29:31 +0900 |
parents | 7fae76c2c564 |
children | 26aed0d561e8 |
files | mercurial/hgweb/webutil.py |
diffstat | 1 files changed, 4 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/webutil.py Tue May 08 19:00:01 2018 +0800 +++ b/mercurial/hgweb/webutil.py Mon Apr 02 00:29:31 2018 +0900 @@ -274,18 +274,14 @@ branches.append(branch) return templateutil.hybridlist(branches, name='name') -def showtag(repo, tmpl, t1, node=nullid, **args): - args = pycompat.byteskwargs(args) +def showtag(repo, tmpl, t1, node=nullid): for t in repo.nodetags(node): - lm = args.copy() - lm['tag'] = t + lm = {'tag': t} yield tmpl.generate(t1, lm) -def showbookmark(repo, tmpl, t1, node=nullid, **args): - args = pycompat.byteskwargs(args) +def showbookmark(repo, tmpl, t1, node=nullid): for t in repo.nodebookmarks(node): - lm = args.copy() - lm['bookmark'] = t + lm = {'bookmark': t} yield tmpl.generate(t1, lm) def branchentries(repo, stripecount, limit=0):