Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py

changeset 185
f002e13c9aed
parent 181
4af57f97c1bc
child 187
d7916a2e31d6
diff -r 460932c8d424 -r f002e13c9aed Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py
--- a/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Sat Apr 17 17:52:45 2010 +0000
+++ b/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Sun Apr 18 10:47:24 2010 +0000
@@ -299,13 +299,16 @@
             msg.append(line.strip())
         
         rev, node = revision.split(":")
+        msgtxt = msg[0]
+        if len(msgtxt) > 30:
+            msgtxt = "{0}...".format(msgtxt[:30])
         itm = QTreeWidgetItem(self.logTree, [
             "", 
             branches[0], 
             "{0:>7}:{1}".format(rev, node), 
             author, 
             date, 
-            " ".join(msg[:1]), 
+            msgtxt, 
             ", ".join(tags), 
         ])
         
@@ -391,7 +394,7 @@
             args.append('--follow')
         args.append('--template')
         args.append("change|{rev}:{node|short}\n"
-                    "user|{email}\n"
+                    "user|{author|email}\n"
                     "parents|{parents}\n"
                     "date|{date|isodate}\n"
                     "description|{desc}\n"

eric ide

mercurial