Commits

augu...@googlemail.com  committed f6c1a3a

repoview: add option to show full author name (closes #2434)

This shows full authorname including email in workbench.
Full authorname display can be enabled in config file by setting

[tortoisehg]
fullauthorname = True

  • Participants
  • Parent commits 8ee0b00

Comments (0)

Files changed (1)

File tortoisehg/hgqt/repomodel.py

         self.unicodexinabox = True
         self.cfgname = cfgname
         self.latesttags = {-1: 'null'}
+        self.fullauthorname = False
 
         # To be deleted
         self._user_colors = {}
         _ui = self.repo.ui
         self.fill_step = int(_ui.config('tortoisehg', 'graphlimit', 500))
         self.authorcolor = _ui.configbool('tortoisehg', 'authorcolor')
+        self.fullauthorname = _ui.configbool('tortoisehg', 'fullauthorname')
 
     def updateColumns(self):
         s = QSettings()
 
     def getauthor(self, ctx, gnode):
         try:
-            return hglib.username(ctx.user())
+            user = ctx.user()
+            if not self.fullauthorname:
+                user = hglib.username(user)
+            return user
         except error.Abort:
             return _('Mercurial User')