Mercurial > hg-stable
diff tests/test-command-template.t @ 34659:3edfd472f3cb
templater: fix ifcontains() to handle type mismatch gracefully
This was unintentionally changed in ee0d74083a22. Since ifcontains() takes
needle of any types, it shouldn't abort depending on the given container type.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 12 Oct 2017 22:09:11 +0900 |
parents | ee0d74083a22 |
children | f4aeb952ab77 |
line wrap: on
line diff
--- a/tests/test-command-template.t Thu Oct 12 21:56:13 2017 +0900 +++ b/tests/test-command-template.t Thu Oct 12 22:09:11 2017 +0900 @@ -3948,6 +3948,9 @@ 1 match rev 0 not match rev + $ hg log -T '{ifcontains(desc, revset(":"), "", "type not match")}\n' -l1 + type not match + $ hg log --template '{rev} Parents: {revset("parents(%s)", rev)}\n' 2 Parents: 1 1 Parents: 0