<%def name="refs(commit)"> ## Build a cache of refs for selector %if commit.merge: ${_('merge')} %endif %if h.is_hg(c.rhodecode_repo): %for book in commit.bookmarks: ${h.shorter(book)} %endfor %endif %for tag in commit.tags: ${tag} %endfor %if commit.branch: ${h.shorter(commit.branch)} %endif