tests/test-command-template.t
branchstable
changeset 22843 b6531d806de8
parent 22582 4fe5fa49eac8
child 22844 1533e642262d
--- a/tests/test-command-template.t	Wed Oct 08 07:47:11 2014 -0400
+++ b/tests/test-command-template.t	Fri Oct 10 11:38:00 2014 -0500
@@ -1817,6 +1817,11 @@
 
 Test ifcontains function
 
+  $ hg log --template '{rev} {ifcontains(rev, "2 two 0", "is in the string", "is not")}\n'
+  2 is in the string
+  1 is not
+  0 is in the string
+
   $ hg log --template '{rev} {ifcontains("a", file_adds, "added a", "did not add a")}\n'
   2 did not add a
   1 did not add a