##// END OF EJS Templates
merge with stable
Matt Mackall -
r20079:d4838302 merge default
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
@@ -1621,3 +1621,8 b' Test recursive evaluation:'
1621 {rev}
1621 {rev}
1622 $ hg log -r 0 --template '{if(rev, "{author} {rev}")}\n'
1622 $ hg log -r 0 --template '{if(rev, "{author} {rev}")}\n'
1623 test 0
1623 test 0
1624
1625 Test branches inside if statement:
1626
1627 $ hg log -r 0 --template '{if(branches, "yes", "no")}\n'
1628 no
General Comments 0
You need to be logged in to leave comments. Login now