mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 15:57:43 +03:00
help: adding example 'extras' printing to 'hg help templates'
This commit is contained in:
parent
3fa07ee864
commit
38bd75be54
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user