##// END OF EJS Templates
templater: makes branches work correctly with stringify (issue4108)
Matt Mackall -
r20076:faa4b3fc stable
parent child Browse files
Show More
@@ -188,6 +188,7 b' def showbranches(**args):'
188 branch = args['ctx'].branch()
188 branch = args['ctx'].branch()
189 if branch != 'default':
189 if branch != 'default':
190 return showlist('branch', [branch], plural='branches', **args)
190 return showlist('branch', [branch], plural='branches', **args)
191 return showlist('branch', [], plural='branches', **args)
191
192
192 def showbookmarks(**args):
193 def showbookmarks(**args):
193 """:bookmarks: List of strings. Any bookmarks associated with the
194 """:bookmarks: List of strings. Any bookmarks associated with the
@@ -1606,3 +1606,8 b' Test recursive evaluation:'
1606 {rev}
1606 {rev}
1607 $ hg log -r 0 --template '{if(rev, "{author} {rev}")}\n'
1607 $ hg log -r 0 --template '{if(rev, "{author} {rev}")}\n'
1608 test 0
1608 test 0
1609
1610 Test branches inside if statement:
1611
1612 $ hg log -r 0 --template '{if(branches, "yes", "no")}\n'
1613 no
General Comments 0
You need to be logged in to leave comments. Login now