# HG changeset patch # User Matthew Turk # Date 2013-11-15 21:53:54 # Node ID ad27cdacc743a095900cb204f914ddf6efabbc89 # Parent 30eced973b28478e0cc0acb6f98232d9f5940c9f help: document about {extras} template keyword This adds text about the "extras" template keyword, similar to that proposed by Yuya Nishihara previously. diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py --- a/mercurial/templatekw.py +++ b/mercurial/templatekw.py @@ -219,6 +219,8 @@ def showdiffstat(repo, ctx, templ, **arg 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()