eric6/Plugins/VcsPlugins/vcsMercurial/HgClient.py

changeset 7370
5fb53279f2df
parent 7360
9190402e4505
child 7399
7088860e4a00
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgClient.py	Wed Jan 08 19:13:57 2020 +0100
+++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgClient.py	Mon Jan 13 19:23:08 2020 +0100
@@ -318,6 +318,12 @@
             output and/or error functions were given, the respective return
             value will be an empty string.
         """
+        if not self.__started:
+            # try to start the Mercurial command server
+            ok, startError = self.startServer()
+            if not ok:
+                return "", startError
+        
         self.__commandRunning = True
         outputChannels = {}
         outputBuffer = None

eric ide

mercurial