diff -r 18b3869179f9 -r 1533e642262d tests/test-command-template.t --- 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