Show More
@@ -378,6 +378,14 b' def showtags(**args):' | |||
|
378 | 378 | """:tags: List of strings. Any tags associated with the changeset.""" |
|
379 | 379 | return showlist('tag', args['ctx'].tags(), **args) |
|
380 | 380 | |
|
381 | def shownames(namespace, **args): | |
|
382 | """helper method to generate a template keyword for a namespace""" | |
|
383 | ctx = args['ctx'] | |
|
384 | repo = ctx._repo | |
|
385 | names = repo.names.names(repo, namespace, ctx.node()) | |
|
386 | return showlist(repo.names.templatename(namespace), names, | |
|
387 | plural=namespace, **args) | |
|
388 | ||
|
381 | 389 | # keywords are callables like: |
|
382 | 390 | # fn(repo, ctx, templ, cache, revcache, **args) |
|
383 | 391 | # with: |
General Comments 0
You need to be logged in to leave comments.
Login now