tests/test-command-template.t
changeset 28373 9a9dd71e882c
parent 28349 7cb2f2438f85
child 28374 af3bd9d1dbc1
--- a/tests/test-command-template.t	Wed Mar 02 15:50:34 2016 +0000
+++ b/tests/test-command-template.t	Thu Jun 11 22:58:27 2015 +0900
@@ -3178,6 +3178,11 @@
   $ hg log --color=always -l 1 --template '{label("text.{rev}", "text\n")}'
   \x1b[0;32mtext\x1b[0m (esc)
 
+color effect can be specified without quoting:
+
+  $ hg log --color=always -l 1 --template '{label(red, "text\n")}'
+  \x1b[0;31mtext\x1b[0m (esc)
+
 Test branches inside if statement:
 
   $ hg log -r 0 --template '{if(branches, "yes", "no")}\n'