'Display the current repository heads.'

def get_value(self, trans, grid, repository):

    repo = hg_util.get_repo_for_repository(trans.app, repository=repository, repo_path=None, create=False)
    heads = hg_util.get_repository_heads(repo)
    multiple_heads = (len(heads) > 1)
    if multiple_heads:
        heads_str = '<font    color="red">'
    else:
        heads_str = ''
    for ctx in heads:
        heads_str += ('%s<br/>' % hg_util.get_revision_label_from_ctx(ctx, include_date=True))
    heads_str.rstrip('<br/>')
    if multiple_heads:
        heads_str += '</font>'
    return heads_str
