# HG changeset patch # User Marcin Kuzminski # Date 2012-02-27 03:05:59 # Node ID 4e1e265af5ca33d4a8ef84a4ea99aabc043dab39 # Parent 5b12cbae0b508df23712b63f23ba691e1d671810 remove branch from git filenode history drop-down diff --git a/rhodecode/controllers/files.py b/rhodecode/controllers/files.py --- a/rhodecode/controllers/files.py +++ b/rhodecode/controllers/files.py @@ -464,9 +464,10 @@ class FilesController(BaseRepoController changesets_group = ([], _("Changesets")) branches_group = ([], _("Branches")) tags_group = ([], _("Tags")) - + _hg = cs.repository.alias == 'hg' for chs in changesets: - n_desc = 'r%s:%s (%s)' % (chs.revision, chs.short_id, chs.branch) + _branch = '(%s)' % chs.branch if _hg else '' + n_desc = 'r%s:%s %s' % (chs.revision, chs.short_id, _branch) changesets_group[0].append((chs.raw_id, n_desc,)) hist_l.append(changesets_group)