# HG changeset patch # User Matthew Turk # Date 2013-11-15 23:09:02 # Node ID f4b3bdc3019e8be6ba4791b297e0d6990fe0cb62 # Parent ad27cdacc743a095900cb204f914ddf6efabbc89 help: adding example 'extras' printing to 'hg help templates' diff --git a/mercurial/help/templates.txt b/mercurial/help/templates.txt --- a/mercurial/help/templates.txt +++ b/mercurial/help/templates.txt @@ -102,3 +102,7 @@ Some sample command line templates: - Invert the firstline filter, i.e. everything but the first line:: $ hg log -r 0 --template "{sub(r'^.*\n?\n?', '', desc)}\n" + +- Display the contents of the 'extra' field, one per line:: + + $ hg log -r 0 --template "{join(extras, '\n')}\n"