help: adding example 'extras' printing to 'hg help templates'
authorMatthew Turk <matthewturk@gmail.com>
Fri, 15 Nov 2013 18:09:02 -0500
changeset 20016 f4b3bdc3019e
parent 20015 ad27cdacc743
child 20017 519120a96c63
help: adding example 'extras' printing to 'hg help templates'
mercurial/help/templates.txt
--- 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"