Commits

Mike Wolfe committed 933cdd4

show tag text inline with commit message

Comments (0)

Files changed (1)

tortoisehg/hgqt/revdetails.py

         self.ctx = ctx = self.repo.changectx(rev)
         self.revpanel.set_revision(rev)
         self.revpanel.update(repo = self.repo)
+        msg = ctx.description()
+        if ctx.tags():  # and config.showTagsInlineWithCommitMsg:
+            msg = ' '.join(['[%s]' % tag for tag in ctx.tags()]) + ' ' + msg
         self.message.setHtml('<pre>%s</pre>'
-                             % self._deschtmlize(ctx.description()))
+                             % self._deschtmlize(msg))
         real = type(rev) is int
         wd = rev is None
         for act in ['navigate', 'diffnavigate', 'ldiff', 'edit', 'save']: