Show More
@@ -382,6 +382,13 b' def shownames(namespace, **args):' | |||
|
382 | 382 | names = ns.names(repo, ctx.node()) |
|
383 | 383 | return showlist(ns.templatename, names, plural=namespace, **args) |
|
384 | 384 | |
|
385 | # don't remove "showtags" definition, even though namespaces will put | |
|
386 | # a helper function for "tags" keyword into "keywords" map automatically, | |
|
387 | # because online help text is built without namespaces initialization | |
|
388 | def showtags(**args): | |
|
389 | """:tags: List of strings. Any tags associated with the changeset.""" | |
|
390 | return shownames('tags', **args) | |
|
391 | ||
|
385 | 392 | # keywords are callables like: |
|
386 | 393 | # fn(repo, ctx, templ, cache, revcache, **args) |
|
387 | 394 | # with: |
@@ -420,6 +427,7 b' keywords = {' | |||
|
420 | 427 | 'phaseidx': showphaseidx, |
|
421 | 428 | 'rev': showrev, |
|
422 | 429 | 'subrepos': showsubrepos, |
|
430 | 'tags': showtags, | |
|
423 | 431 | } |
|
424 | 432 | |
|
425 | 433 | def _showparents(**args): |
General Comments 0
You need to be logged in to leave comments.
Login now