tests/test-command-template.t
changeset 20518 1e43f15a647f
parent 20370 aa51392da507
child 20519 cda9d2b6beab
--- a/tests/test-command-template.t	Thu Feb 13 17:34:09 2014 -0800
+++ b/tests/test-command-template.t	Tue Feb 11 21:10:00 2014 -0800
@@ -1651,3 +1651,9 @@
   $ hg log --template '{pad(rev, 20, "-", False)} {author|user}\n'
   1------------------- test
   0------------------- test
+
+Test ifcontains function
+
+  $ hg log --template '{rev} {ifcontains("a", file_adds, "added a", "did not add a")}\n'
+  1 did not add a
+  0 added a