Commits

TK Soh committed 026284b

history: show tags in summary column

Comments (0)

Files changed (1)

hggtk/vis/treemodel.py

             summary = summary.split('\n')[0]
             summary = gobject.markup_escape_text(toutf(summary))
             node = self.repo.lookup(revid)
-            tags = toutf(', '.join(self.repo.nodetags(node)))
+            tags = self.repo.nodetags(node)
+            taglist = toutf(', '.join(tags))
+            for tag in tags:
+                summary = '<span background="#ffffaa"> %s </span> %s' % (
+                        tag, summary)
 
             if '<' in ctx.user():
                 author = toutf(self.author_re.sub('', ctx.user()).strip(' '))
             color = self.color_func(parents, revid, author)
 
             revision = (None, node, revid, None, summary,
-                    author, date, None, parents, wc_parent, head, tags,
+                    author, date, None, parents, wc_parent, head, taglist,
                     None, color)
             self.revisions[revid] = revision
         else:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.