src/eric7/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py

branch
eric7
changeset 10214
de0718b80010
parent 10069
435cc5875135
child 10215
d476667171a1
diff -r 0d0683edaf24 -r de0718b80010 src/eric7/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py
--- a/src/eric7/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Sat Sep 23 15:30:28 2023 +0200
+++ b/src/eric7/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Mon Sep 25 12:09:23 2023 +0200
@@ -800,18 +800,13 @@
         parents = [-1]
 
         if int(rev) > 0:
-            args = self.vcs.initCommand("parents")
+            args = self.vcs.initCommand("log")
             if self.commandMode == "incoming":
                 if self.__bundle:
-                    args.append("--repository")
-                    args.append(self.__bundle)
+                    args.extend(["--repository", self.__bundle])
                 elif self.vcs.bundleFile and os.path.exists(self.vcs.bundleFile):
-                    args.append("--repository")
-                    args.append(self.vcs.bundleFile)
-            args.append("--template")
-            args.append("{rev}\n")
-            args.append("-r")
-            args.append(rev)
+                    args.extend(["--repository", self.vcs.bundleFile])
+            args.extend(["--template", "{rev}\n", "-r", "parents({0})".format(rev)])
             if not self.projectMode:
                 args.append(self.__filename)
 

eric ide

mercurial