diff -r d012d95499f7 -r f78bc5ddbe4f mercurial/templatekw.py --- a/mercurial/templatekw.py Fri Feb 11 19:44:17 2011 +0100 +++ b/mercurial/templatekw.py Fri Feb 11 19:47:39 2011 +0100 @@ -153,6 +153,10 @@ if branch != 'default': return showlist('branch', [branch], plural='branches', **args) +def showbookmarks(**args): + bookmarks = args['ctx'].bookmarks() + return showlist('bookmark', bookmarks, **args) + def showchildren(**args): ctx = args['ctx'] childrevs = ['%d:%s' % (cctx, cctx) for cctx in ctx.children()] @@ -252,6 +256,7 @@ 'author': showauthor, 'branch': showbranch, 'branches': showbranches, + 'bookmarks': showbookmarks, 'children': showchildren, 'date': showdate, 'desc': showdescription,