diff rhodecode/controllers/files.py @ 2046:4e1e265af5ca beta

remove branch from git filenode history drop-down
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 27 Feb 2012 05:05:59 +0200
parents 324ac367a4da
children 79a95f338fd0 60115135b77e
line wrap: on
line diff
--- a/rhodecode/controllers/files.py	Mon Feb 27 04:28:40 2012 +0200
+++ b/rhodecode/controllers/files.py	Mon Feb 27 05:05:59 2012 +0200
@@ -464,9 +464,10 @@
         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)