eric6/Plugins/VcsPlugins/vcsMercurial/ShelveExtension/shelve.py

changeset 7370
5fb53279f2df
parent 7360
9190402e4505
child 7759
51aa6c6b66f7
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/ShelveExtension/shelve.py	Wed Jan 08 19:13:57 2020 +0100
+++ b/eric6/Plugins/VcsPlugins/vcsMercurial/ShelveExtension/shelve.py	Mon Jan 13 19:23:08 2020 +0100
@@ -7,10 +7,8 @@
 Module implementing the shelve extension interface.
 """
 
-
 import os
 
-from PyQt5.QtCore import QProcess
 from PyQt5.QtWidgets import QDialog
 
 from E5Gui import E5MessageBox
@@ -54,19 +52,7 @@
         args.append('--quiet')
         
         client = self.vcs.getClient()
-        output = ""
-        if client:
-            output = client.runcommand(args)[0]
-        else:
-            process = QProcess()
-            process.setWorkingDirectory(repodir)
-            process.start('hg', args)
-            procStarted = process.waitForStarted(5000)
-            if procStarted:
-                finished = process.waitForFinished(30000)
-                if finished and process.exitCode() == 0:
-                    output = str(process.readAllStandardOutput(),
-                                 self.vcs.getEncoding(), 'replace')
+        output = client.runcommand(args)[0]
         
         shelveNamesList = []
         for line in output.splitlines():

eric ide

mercurial