changeset 20016:f4b3bdc3019e

help: adding example 'extras' printing to 'hg help templates'
author Matthew Turk <matthewturk@gmail.com>
date Fri, 15 Nov 2013 18:09:02 -0500
parents ad27cdacc743
children 519120a96c63
files mercurial/help/templates.txt
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/help/templates.txt	Fri Nov 15 16:53:54 2013 -0500
+++ b/mercurial/help/templates.txt	Fri Nov 15 18:09:02 2013 -0500
@@ -102,3 +102,7 @@
 - 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"