comparison mercurial/help/templates.txt @ 21946:868e2cea3ea0 stable

help: mention '-T list' in templater topic
author Matt Mackall <mpm@selenic.com>
date Fri, 25 Jul 2014 15:51:42 -0500
parents d603e7333281
children 05ea941aafdc
comparison
equal deleted inserted replaced
21945:d603e7333281 21946:868e2cea3ea0
3 template-style from the command line, via the --template option. 3 template-style from the command line, via the --template option.
4 4
5 You can customize output for any "log-like" command: log, 5 You can customize output for any "log-like" command: log,
6 outgoing, incoming, tip, parents, and heads. 6 outgoing, incoming, tip, parents, and heads.
7 7
8 Five styles are packaged with Mercurial: default (the style used 8 Some built-in styles are packaged with Mercurial. These can be listed
9 when no explicit preference is passed), compact, changelog, phases 9 with :hg:`log --template list`. Example usage::
10 and xml.
11 Usage::
12 10
13 $ hg log -r1 --template changelog 11 $ hg log -r1.0::1.1 --template changelog
14 12
15 A template is a piece of text, with markup to invoke variable 13 A template is a piece of text, with markup to invoke variable
16 expansion:: 14 expansion::
17 15
18 $ hg log -r1 --template "{node}\n" 16 $ hg log -r1 --template "{node}\n"