tests/test-command-template.t
changeset 24240 bd504d90588d
parent 24157 d091f62be5ae
child 24241 e7baf88c29c3
--- a/tests/test-command-template.t	Sun Mar 08 14:46:42 2015 +0900
+++ b/tests/test-command-template.t	Wed Feb 18 23:01:33 2015 +0900
@@ -47,6 +47,9 @@
   fourth (second)
   $ hg log -T '{file_copies % "{source} -> {name}\n"}' -r .
   second -> fourth
+  $ hg log -T '{rev} {ifcontains("fourth", file_copies, "t", "f")}\n' -r .:7
+  8 t
+  7 f
 
 Quoting for ui.logtemplate
 
@@ -2386,6 +2389,10 @@
   2 bar foo
   1 baz
   0 
+  $ hg log --template "{rev} {ifcontains('foo', bookmarks, 't', 'f')}\n"
+  2 t
+  1 f
+  0 f
 
 Test stringify on sub expressions