eric6/Plugins/VcsPlugins/vcsMercurial/HgClient.py

changeset 8143
2c730d5fd177
parent 7979
54b73174ab61
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
91 return False, self.tr( 91 return False, self.tr(
92 'The process {0} could not be started. ' 92 'The process {0} could not be started. '
93 'Ensure, that it is in the search path.' 93 'Ensure, that it is in the search path.'
94 ).format('hg') 94 ).format('hg')
95 95
96 self.__server.setReadChannel(QProcess.StandardOutput) 96 self.__server.setReadChannel(QProcess.ProcessChannel.StandardOutput)
97 ok, error = self.__readHello() 97 ok, error = self.__readHello()
98 self.__started = ok 98 self.__started = ok
99 return ok, error 99 return ok, error
100 100
101 def stopServer(self): 101 def stopServer(self):
310 """ 310 """
311 from .HgClientPromptDialog import HgClientPromptDialog 311 from .HgClientPromptDialog import HgClientPromptDialog
312 inputData = "" 312 inputData = ""
313 isPassword = False 313 isPassword = False
314 dlg = HgClientPromptDialog(size, message) 314 dlg = HgClientPromptDialog(size, message)
315 if dlg.exec() == QDialog.Accepted: 315 if dlg.exec() == QDialog.DialogCode.Accepted:
316 inputData = dlg.getInput() + '\n' 316 inputData = dlg.getInput() + '\n'
317 isPassword = dlg.isPassword() 317 isPassword = dlg.isPassword()
318 return inputData, isPassword 318 return inputData, isPassword
319 319
320 def runcommand(self, args, prompt=None, inputData=None, output=None, 320 def runcommand(self, args, prompt=None, inputData=None, output=None,

eric ide

mercurial