help: adding example 'extras' printing to 'hg help templates'

This commit is contained in:
Matthew Turk 2013-11-15 18:09:02 -05:00
parent 3fa07ee864
commit 38bd75be54

View File

@ -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"