Mercurial > hg
changeset 20665:945bc5497e6d
commands: add -T alternative to --template
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 08 Mar 2014 15:27:25 -0600 |
parents | 6ed183760e70 |
children | e3eb480a9391 |
files | mercurial/commands.py tests/test-command-template.t |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Fri Mar 07 14:29:26 2014 -0500 +++ b/mercurial/commands.py Sat Mar 08 15:27:25 2014 -0600 @@ -90,7 +90,7 @@ templateopts = [ ('', 'style', '', _('display using template map file'), _('STYLE')), - ('', 'template', '', + ('T', 'template', '', _('display with template'), _('TEMPLATE')), ]
--- a/tests/test-command-template.t Fri Mar 07 14:29:26 2014 -0500 +++ b/tests/test-command-template.t Sat Mar 08 15:27:25 2014 -0600 @@ -45,7 +45,7 @@ $ hg log --template '{join(file_copies, ",\n")}\n' -r . fourth (second) - $ hg log --template '{file_copies % "{source} -> {name}\n"}' -r . + $ hg log -T '{file_copies % "{source} -> {name}\n"}' -r . second -> fourth Quoting for ui.logtemplate