# HG changeset patch # User Matt Mackall # Date 2014-03-08 21:27:25 # Node ID 945bc5497e6d90898fb8c9b09be5709cd922f89a # Parent 6ed183760e70e711c65515004958c73dbd043cc2 commands: add -T alternative to --template diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -90,7 +90,7 @@ commitopts2 = [ templateopts = [ ('', 'style', '', _('display using template map file'), _('STYLE')), - ('', 'template', '', + ('T', 'template', '', _('display with template'), _('TEMPLATE')), ] diff --git a/tests/test-command-template.t b/tests/test-command-template.t --- a/tests/test-command-template.t +++ b/tests/test-command-template.t @@ -45,7 +45,7 @@ Second branch starting at nullrev: $ 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