Mercurial > public > mercurial-scm > hg
diff tests/test-command-template.t @ 22843:b6531d806de8 stable
templater: fix ifcontains when list is a string (issue4399)
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 10 Oct 2014 11:38:00 -0500 |
parents | 4fe5fa49eac8 |
children | 1533e642262d |
line wrap: on
line diff
--- 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