%def name="refs(commit)">
%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
%def>