tests/test-command-template.t
changeset 22844 1533e642262d
parent 22766 0ded0f0b1c04
parent 22843 b6531d806de8
child 23453 341e4798c24d
child 23734 f4e6475950f1
--- a/tests/test-command-template.t	Wed Oct 08 14:16:53 2014 -0700
+++ b/tests/test-command-template.t	Fri Oct 10 12:15:46 2014 -0500
@@ -2296,6 +2296,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