Some more finetuning of the log browser dialog.

Sun, 18 Apr 2010 10:47:24 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 18 Apr 2010 10:47:24 +0000
changeset 185
f002e13c9aed
parent 184
460932c8d424
child 186
655fda145529

Some more finetuning of the log browser dialog.

Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.ui file | annotate | diff | comparison | revisions
--- 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"
--- a/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.ui	Sat Apr 17 17:52:45 2010 +0000
+++ b/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.ui	Sun Apr 18 10:47:24 2010 +0000
@@ -6,7 +6,7 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>700</width>
+    <width>800</width>
     <height>800</height>
    </rect>
   </property>

eric ide

mercurial