94 |
94 |
95 if self.__hgClient: |
95 if self.__hgClient: |
96 self.inputGroup.setEnabled(False) |
96 self.inputGroup.setEnabled(False) |
97 self.inputGroup.hide() |
97 self.inputGroup.hide() |
98 |
98 |
99 out, err = self.__hgClient.runcommand(args, |
99 out, err = self.__hgClient.runcommand( |
100 output=self.__showOutput, error=self.__showError) |
100 args, output=self.__showOutput, error=self.__showError) |
101 if err: |
101 if err: |
102 self.__showError(err) |
102 self.__showError(err) |
103 if out: |
103 if out: |
104 self.__showOutPut(out) |
104 self.__showOutPut(out) |
105 self.__finish() |
105 self.__finish() |
108 self.process.setWorkingDirectory(repodir) |
108 self.process.setWorkingDirectory(repodir) |
109 |
109 |
110 self.process.start('hg', args) |
110 self.process.start('hg', args) |
111 procStarted = self.process.waitForStarted(5000) |
111 procStarted = self.process.waitForStarted(5000) |
112 if not procStarted: |
112 if not procStarted: |
113 E5MessageBox.critical(self, |
113 E5MessageBox.critical( |
|
114 self, |
114 self.trUtf8('Process Generation Error'), |
115 self.trUtf8('Process Generation Error'), |
115 self.trUtf8( |
116 self.trUtf8( |
116 'The process {0} could not be started. ' |
117 'The process {0} could not be started. ' |
117 'Ensure, that it is in the search path.' |
118 'Ensure, that it is in the search path.' |
118 ).format('hg')) |
119 ).format('hg')) |