##// END OF EJS Templates
help: adding example 'extras' printing to 'hg help templates'
Matthew Turk -
r20016:f4b3bdc3 default
parent child Browse files
Show More
@@ -102,3 +102,7 b' Some sample command line templates:'
102 - Invert the firstline filter, i.e. everything but the first line::
102 - Invert the firstline filter, i.e. everything but the first line::
103
103
104 $ hg log -r 0 --template "{sub(r'^.*\n?\n?', '', desc)}\n"
104 $ hg log -r 0 --template "{sub(r'^.*\n?\n?', '', desc)}\n"
105
106 - Display the contents of the 'extra' field, one per line::
107
108 $ hg log -r 0 --template "{join(extras, '\n')}\n"
General Comments 0
You need to be logged in to leave comments. Login now