##// END OF EJS Templates
templatekw: re-add showtags() to list tags keyword up in online help...
FUJIWARA Katsunori -
r23977:0870bb93 stable
parent child Browse files
Show More
@@ -382,6 +382,13 b' def shownames(namespace, **args):'
382 names = ns.names(repo, ctx.node())
382 names = ns.names(repo, ctx.node())
383 return showlist(ns.templatename, names, plural=namespace, **args)
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 # keywords are callables like:
392 # keywords are callables like:
386 # fn(repo, ctx, templ, cache, revcache, **args)
393 # fn(repo, ctx, templ, cache, revcache, **args)
387 # with:
394 # with:
@@ -420,6 +427,7 b' keywords = {'
420 'phaseidx': showphaseidx,
427 'phaseidx': showphaseidx,
421 'rev': showrev,
428 'rev': showrev,
422 'subrepos': showsubrepos,
429 'subrepos': showsubrepos,
430 'tags': showtags,
423 }
431 }
424
432
425 def _showparents(**args):
433 def _showparents(**args):
General Comments 0
You need to be logged in to leave comments. Login now