help: document about {extras} template keyword
authorMatthew Turk <matthewturk@gmail.com>
Fri, 15 Nov 2013 16:53:54 -0500
changeset 20015 ad27cdacc743
parent 20014 30eced973b28
child 20016 f4b3bdc3019e
help: document about {extras} template keyword This adds text about the "extras" template keyword, similar to that proposed by Yuya Nishihara previously.
mercurial/templatekw.py
--- a/mercurial/templatekw.py	Sat Nov 09 14:50:12 2013 +0100
+++ b/mercurial/templatekw.py	Fri Nov 15 16:53:54 2013 -0500
@@ -219,6 +219,8 @@
     return '%s: +%s/-%s' % (len(stats), adds, removes)
 
 def showextras(**args):
+    """:extras: List of dicts with key, value entries of the 'extras'
+    field of this changeset."""
     templ = args['templ']
     for key, value in sorted(args['ctx'].extra().items()):
         args = args.copy()