--- a/tests/test-command-template.t Sat Jun 13 00:15:22 2015 +0900
+++ b/tests/test-command-template.t Sat Jun 13 19:49:54 2015 +0900
@@ -2803,6 +2803,15 @@
hg: parse error: expected a symbol, got 'integer'
[255]
+Test string literal:
+
+ $ hg log -Ra -r0 -T '{"string with no template fragment"}\n'
+ string with no template fragment
+ $ hg log -Ra -r0 -T '{"template: {rev}"}\n'
+ template: 0
+ $ hg log -Ra -r0 -T '{r"rawstring: {rev}"}\n'
+ rawstring: {rev}
+
Test string escaping:
$ hg log -R latesttag -r 0 --template '>\n<>\\n<{if(rev, "[>\n<>\\n<]")}>\n<>\\n<\n'