tests/test-command-template.t
changeset 25662 ff5172c83002
parent 25597 fd5bc660c9f0
parent 25638 6047b60cdd09
child 25695 ce3d4b858420
--- 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