##// END OF EJS Templates
hgweb: wrap {changelogtag}, {changesettag}, and {changesetbookmark}...
Yuya Nishihara -
r37930:26aed0d5 default
parent child Browse files
Show More
@@ -274,15 +274,17 b' def nodebranchnodefault(ctx):'
274 branches.append(branch)
274 branches.append(branch)
275 return templateutil.hybridlist(branches, name='name')
275 return templateutil.hybridlist(branches, name='name')
276
276
277 def _nodenamesgen(context, f, node, name):
278 for t in f(node):
279 yield {name: t}
280
277 def showtag(repo, tmpl, t1, node=nullid):
281 def showtag(repo, tmpl, t1, node=nullid):
278 for t in repo.nodetags(node):
282 args = (repo.nodetags, node, 'tag')
279 lm = {'tag': t}
283 return templateutil.mappinggenerator(_nodenamesgen, args=args, name=t1)
280 yield tmpl.generate(t1, lm)
281
284
282 def showbookmark(repo, tmpl, t1, node=nullid):
285 def showbookmark(repo, tmpl, t1, node=nullid):
283 for t in repo.nodebookmarks(node):
286 args = (repo.nodebookmarks, node, 'bookmark')
284 lm = {'bookmark': t}
287 return templateutil.mappinggenerator(_nodenamesgen, args=args, name=t1)
285 yield tmpl.generate(t1, lm)
286
288
287 def branchentries(repo, stripecount, limit=0):
289 def branchentries(repo, stripecount, limit=0):
288 tips = []
290 tips = []
General Comments 0
You need to be logged in to leave comments. Login now