commands: add -T alternative to --template
authorMatt Mackall <mpm@selenic.com>
Sat, 08 Mar 2014 15:27:25 -0600
changeset 20665 945bc5497e6d
parent 20664 6ed183760e70
child 20666 e3eb480a9391
commands: add -T alternative to --template
mercurial/commands.py
tests/test-command-template.t
--- 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