view mercurial/__init__.py @ 20520:5c65ee4193e1

template: add 'current' to scope during {bookmarks % ...} This adds the keyword 'current' to the template scope when processing a bookmark list. The 'current' keyword resolves to the name of the currently active bookmark in the repo. This allows us to apply special labels to the current bookmark to distinguish it (especially in the case where there are multiple bookmarks on the same commit). Example: "{bookmarks % '{bookmark}{ifeq(bookmark, current, \"*\")} '}" Results in a space separated list of bookmarks where the current bookmark has an asterix.
author Durham Goode <durham@fb.com>
date Tue, 11 Feb 2014 21:40:33 -0800
parents 9117c6561b0b
children 4374d819ccd5
line wrap: on
line source