tests/test-command-template.t
changeset 25509 576d6c74784b
parent 25490 ad14fb602e5e
child 25580 a69983942fb4
--- a/tests/test-command-template.t	Sat Jun 06 22:10:18 2015 -0400
+++ b/tests/test-command-template.t	Mon Jun 08 18:48:45 2015 +0900
@@ -3042,6 +3042,14 @@
   1------------------- {node|short}
   0------------------- test
 
+Test template string in pad function
+
+  $ hg log -r 0 -T '{pad("\{{rev}}", 10)} {author|user}\n'
+  {0}        test
+
+  $ hg log -r 0 -T '{pad(r"\{rev}", 10)} {author|user}\n'
+  \0         test
+
 Test ifcontains function
 
   $ hg log --template '{rev} {ifcontains(rev, "2 two 0", "is in the string", "is not")}\n'