Plugins/VcsPlugins/vcsMercurial/HgDialog.py

changeset 189
17bb2db7a347
parent 178
dd9f0bca5e2f
child 221
38689444e922
equal deleted inserted replaced
188:98eb4145b4e4 189:17bb2db7a347
94 @param exitStatus exit status of the process (QProcess.ExitStatus) 94 @param exitStatus exit status of the process (QProcess.ExitStatus)
95 """ 95 """
96 self.normal = (exitStatus == QProcess.NormalExit) and (exitCode == 0) 96 self.normal = (exitStatus == QProcess.NormalExit) and (exitCode == 0)
97 self.__finish() 97 self.__finish()
98 98
99 def startProcess(self, args, workingDir = None): 99 def startProcess(self, args, workingDir = None, showArgs = True):
100 """ 100 """
101 Public slot used to start the process. 101 Public slot used to start the process.
102 102
103 @param args list of arguments for the process (list of strings) 103 @param args list of arguments for the process (list of strings)
104 @param workingDir working directory for the process (string) 104 @keyparam workingDir working directory for the process (string)
105 @keyparam showArgs flag indicating to show the arguments (boolean)
105 @return flag indicating a successful start of the process 106 @return flag indicating a successful start of the process
106 """ 107 """
107 self.errorGroup.hide() 108 self.errorGroup.hide()
108 self.normal = False 109 self.normal = False
109 self.intercept = False 110 self.intercept = False
111 self.__hasAddOrDelete = False 112 self.__hasAddOrDelete = False
112 self.__updateCommand = args[0] == "update" 113 self.__updateCommand = args[0] == "update"
113 114
114 self.proc = QProcess() 115 self.proc = QProcess()
115 116
116 self.resultbox.append(' '.join(args)) 117 if showArgs:
117 self.resultbox.append('') 118 self.resultbox.append(' '.join(args))
119 self.resultbox.append('')
118 120
119 self.connect(self.proc, SIGNAL('finished(int, QProcess::ExitStatus)'), 121 self.connect(self.proc, SIGNAL('finished(int, QProcess::ExitStatus)'),
120 self.__procFinished) 122 self.__procFinished)
121 self.connect(self.proc, SIGNAL('readyReadStandardOutput()'), 123 self.connect(self.proc, SIGNAL('readyReadStandardOutput()'),
122 self.__readStdout) 124 self.__readStdout)

eric ide

mercurial