Plugins/VcsPlugins/vcsMercurial/HgLogDialog.py

branch
5_5_x
changeset 3717
7e3c0ffa307d
parent 3591
2f2a4a76dd22
child 3864
bac91da5d76a
diff -r 09b6f92a82ca -r 7e3c0ffa307d Plugins/VcsPlugins/vcsMercurial/HgLogDialog.py
--- a/Plugins/VcsPlugins/vcsMercurial/HgLogDialog.py	Sun Jul 20 13:05:58 2014 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/HgLogDialog.py	Sun Jul 20 16:27:59 2014 +0200
@@ -140,13 +140,21 @@
                 args.append("--subrepos")
         if self.mode == "log":
             args.append('--copies')
-        args.append('--style')
-        if self.vcs.version >= (2, 1):
+        if self.vcs.version >= (3, 0):
+            args.append('--template')
             args.append(os.path.join(os.path.dirname(__file__),
-                                     "styles", "logDialogBookmarkPhase.style"))
+                                     "templates",
+                                     "logDialogBookmarkPhase.tmpl"))
         else:
-            args.append(os.path.join(os.path.dirname(__file__),
-                                     "styles", "logDialogBookmark.style"))
+            args.append('--style')
+            if self.vcs.version >= (2, 1):
+                args.append(os.path.join(os.path.dirname(__file__),
+                                         "styles",
+                                         "logDialogBookmarkPhase.style"))
+            else:
+                args.append(os.path.join(os.path.dirname(__file__),
+                                         "styles",
+                                         "logDialogBookmark.style"))
         if self.mode == "incoming":
             if self.bundle:
                 args.append(self.bundle)
@@ -347,7 +355,7 @@
                 html += self.tr("Phase: {0}<br />\n")\
                     .format(entry["phase"])
             
-            html += self.tr("Branches: {0}<br />\n")\
+            html += self.tr("Branch: {0}<br />\n")\
                 .format(entry["branches"])
             
             html += self.tr("Tags: {0}<br />\n").format(entry["tags"])
@@ -360,7 +368,7 @@
                 .format(entry["parents"])
             
             html += self.tr('<i>Author: {0}</i><br />\n')\
-                .format(entry["user"])
+                .format(Utilities.html_encode(entry["user"]))
             
             date, time = entry["date"].split()[:2]
             html += self.tr('<i>Date: {0}, {1}</i><br />\n')\

eric ide

mercurial