Mercurial > public > mercurial-scm > hg
diff tests/test-command-template.t @ 20076:faa4b3fc4197 stable
templater: makes branches work correctly with stringify (issue4108)
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 21 Nov 2013 11:30:52 -0600 |
parents | 3d8bfe2ecf6d |
children | d4838302305c |
line wrap: on
line diff
--- a/tests/test-command-template.t Sun Nov 17 15:11:09 2013 -0800 +++ b/tests/test-command-template.t Thu Nov 21 11:30:52 2013 -0600 @@ -1606,3 +1606,8 @@ {rev} $ hg log -r 0 --template '{if(rev, "{author} {rev}")}\n' test 0 + +Test branches inside if statement: + + $ hg log -r 0 --template '{if(branches, "yes", "no")}\n' + no