Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 181
4af57f97c1bc
parent 178
dd9f0bca5e2f
child 182
5fb26c972892
--- a/Plugins/VcsPlugins/vcsMercurial/hg.py	Sat Apr 17 16:20:11 2010 +0000
+++ b/Plugins/VcsPlugins/vcsMercurial/hg.py	Sat Apr 17 16:43:18 2010 +0000
@@ -1254,9 +1254,14 @@
         
         @param name file/directory name to show the log of (string)
         """
-        self.log = HgLogDialog(self, mode = "incoming")
-        self.log.show()
-        self.log.start(name)
+        if self.getPlugin().getPreferences("UseLogBrowser"):
+            self.logBrowser = HgLogBrowserDialog(self, mode = "incoming")
+            self.logBrowser.show()
+            self.logBrowser.start(name)
+        else:
+            self.log = HgLogDialog(self, mode = "incoming")
+            self.log.show()
+            self.log.start(name)
     
     def hgOutgoing(self, name):
         """
@@ -1265,9 +1270,14 @@
         
         @param name file/directory name to show the log of (string)
         """
-        self.log = HgLogDialog(self, mode = "outgoing")
-        self.log.show()
-        self.log.start(name)
+        if self.getPlugin().getPreferences("UseLogBrowser"):
+            self.logBrowser = HgLogBrowserDialog(self, mode = "outgoing")
+            self.logBrowser.show()
+            self.logBrowser.start(name)
+        else:
+            self.log = HgLogDialog(self, mode = "outgoing")
+            self.log.show()
+            self.log.start(name)
     
     def hgPull(self, name):
         """

eric ide

mercurial