Commits

TK Soh committed 7355efe

history: show branch name for head revisions

  • Participants
  • Parent commits 25e2fe1

Comments (0)

Files changed (1)

hggtk/vis/treemodel.py

                 summary = '<span background="#ffffaa"> %s </span> %s' % (
                         tag, summary)
 
+            # show no-default branch names in head changesets
+            branch = ctx.branch()
+            if revid in self.heads and branch != "default":
+                summary = '<span background="#aaffaa"> %s </span> %s' % (
+                        branch, summary)
+
             if '<' in ctx.user():
                 author = toutf(self.author_re.sub('', ctx.user()).strip(' '))
             else: