--- a/tests/test-command-template.t Tue Jun 23 22:20:01 2015 -0700
+++ b/tests/test-command-template.t Wed Jun 24 13:41:27 2015 -0500
@@ -2849,6 +2849,17 @@
<>\n<]>
<>\n<
+Test string escaping of quotes:
+
+ $ hg log -Ra -r0 -T '{"\""}\n'
+ "
+ $ hg log -Ra -r0 -T '{"\\\""}\n'
+ \"
+ $ hg log -Ra -r0 -T '{r"\""}\n'
+ \"
+ $ hg log -Ra -r0 -T '{r"\\\""}\n'
+ \\\"
+
Test exception in quoted template. single backslash before quotation mark is
stripped before parsing:
@@ -3121,6 +3132,9 @@
Rev: 0
Ancestor: 0
+ $ hg log --template '{revset("TIP"|lower)}\n' -l1
+ 2
+
Test active bookmark templating
$ hg book foo