Mercurial > hg
diff mercurial/help/templates.txt @ 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 | 3af3a165db18 |
children | 574f3b6e0e8b |
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"