Show More
@@ -274,15 +274,17 b' def nodebranchnodefault(ctx):' | |||
|
274 | 274 | branches.append(branch) |
|
275 | 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 | 281 | def showtag(repo, tmpl, t1, node=nullid): |
|
278 |
|
|
|
279 | lm = {'tag': t} | |
|
280 | yield tmpl.generate(t1, lm) | |
|
282 | args = (repo.nodetags, node, 'tag') | |
|
283 | return templateutil.mappinggenerator(_nodenamesgen, args=args, name=t1) | |
|
281 | 284 | |
|
282 | 285 | def showbookmark(repo, tmpl, t1, node=nullid): |
|
283 |
|
|
|
284 | lm = {'bookmark': t} | |
|
285 | yield tmpl.generate(t1, lm) | |
|
286 | args = (repo.nodebookmarks, node, 'bookmark') | |
|
287 | return templateutil.mappinggenerator(_nodenamesgen, args=args, name=t1) | |
|
286 | 288 | |
|
287 | 289 | def branchentries(repo, stripecount, limit=0): |
|
288 | 290 | tips = [] |
General Comments 0
You need to be logged in to leave comments.
Login now