changeset 20015:ad27cdacc743

help: document about {extras} template keyword This adds text about the "extras" template keyword, similar to that proposed by Yuya Nishihara previously.
author Matthew Turk <matthewturk@gmail.com>
date Fri, 15 Nov 2013 16:53:54 -0500
parents 30eced973b28
children f4b3bdc3019e
files mercurial/templatekw.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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()