Plugins/VcsPlugins/vcsMercurial/HgLogDialog.py

changeset 3247
ed79e48ba0b4
parent 3242
a7e006073658
child 3249
8f22bfa586b1
--- a/Plugins/VcsPlugins/vcsMercurial/HgLogDialog.py	Sat Feb 01 16:29:24 2014 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/HgLogDialog.py	Sat Feb 01 16:35:17 2014 +0100
@@ -179,7 +179,7 @@
                 err = ""
             if err:
                 self.__showError(err)
-            else:
+            elif os.path.exists(self.vcs.bundleFile):
                 out, err = self.__hgClient.runcommand(args)
                 if err:
                     self.__showError(err)
@@ -202,18 +202,21 @@
                 if procStarted:
                     process.waitForFinished(30000)
             
-            self.process.start('hg', args)
-            procStarted = self.process.waitForStarted(5000)
-            if not procStarted:
-                self.inputGroup.setEnabled(False)
-                self.inputGroup.hide()
-                E5MessageBox.critical(
-                    self,
-                    self.tr('Process Generation Error'),
-                    self.tr(
-                        'The process {0} could not be started. '
-                        'Ensure, that it is in the search path.'
-                    ).format('hg'))
+            if os.path.exists(self.vcs.bundleFile):
+                self.process.start('hg', args)
+                procStarted = self.process.waitForStarted(5000)
+                if not procStarted:
+                    self.inputGroup.setEnabled(False)
+                    self.inputGroup.hide()
+                    E5MessageBox.critical(
+                        self,
+                        self.tr('Process Generation Error'),
+                        self.tr(
+                            'The process {0} could not be started. '
+                            'Ensure, that it is in the search path.'
+                        ).format('hg'))
+            else:
+                self.__finish()
     
     def __getParents(self, rev):
         """

eric ide

mercurial