186 self.process.start('hg', args) |
186 self.process.start('hg', args) |
187 procStarted = self.process.waitForStarted(5000) |
187 procStarted = self.process.waitForStarted(5000) |
188 if not procStarted: |
188 if not procStarted: |
189 self.inputGroup.setEnabled(False) |
189 self.inputGroup.setEnabled(False) |
190 self.inputGroup.hide() |
190 self.inputGroup.hide() |
191 E5MessageBox.critical(self, |
191 E5MessageBox.critical( |
|
192 self, |
192 self.trUtf8('Process Generation Error'), |
193 self.trUtf8('Process Generation Error'), |
193 self.trUtf8( |
194 self.trUtf8( |
194 'The process {0} could not be started. ' |
195 'The process {0} could not be started. ' |
195 'Ensure, that it is in the search path.' |
196 'Ensure, that it is in the search path.' |
196 ).format('hg')) |
197 ).format('hg')) |
245 "The hg process did not finish within 30s.") |
246 "The hg process did not finish within 30s.") |
246 else: |
247 else: |
247 errMsg = self.trUtf8("Could not start the hg executable.") |
248 errMsg = self.trUtf8("Could not start the hg executable.") |
248 |
249 |
249 if errMsg: |
250 if errMsg: |
250 E5MessageBox.critical(self, |
251 E5MessageBox.critical( |
|
252 self, |
251 self.trUtf8("Mercurial Error"), |
253 self.trUtf8("Mercurial Error"), |
252 errMsg) |
254 errMsg) |
253 |
255 |
254 if output: |
256 if output: |
255 parents = [p for p in output.strip().splitlines()] |
257 parents = [p for p in output.strip().splitlines()] |