192 self.process.start('hg', args) |
192 self.process.start('hg', args) |
193 procStarted = self.process.waitForStarted(5000) |
193 procStarted = self.process.waitForStarted(5000) |
194 if not procStarted: |
194 if not procStarted: |
195 self.inputGroup.setEnabled(False) |
195 self.inputGroup.setEnabled(False) |
196 self.inputGroup.hide() |
196 self.inputGroup.hide() |
197 E5MessageBox.critical(self, |
197 E5MessageBox.critical( |
|
198 self, |
198 self.trUtf8('Process Generation Error'), |
199 self.trUtf8('Process Generation Error'), |
199 self.trUtf8( |
200 self.trUtf8( |
200 'The process {0} could not be started. ' |
201 'The process {0} could not be started. ' |
201 'Ensure, that it is in the search path.' |
202 'Ensure, that it is in the search path.' |
202 ).format('hg')) |
203 ).format('hg')) |
251 "The hg process did not finish within 30s.") |
252 "The hg process did not finish within 30s.") |
252 else: |
253 else: |
253 errMsg = self.trUtf8("Could not start the hg executable.") |
254 errMsg = self.trUtf8("Could not start the hg executable.") |
254 |
255 |
255 if errMsg: |
256 if errMsg: |
256 E5MessageBox.critical(self, |
257 E5MessageBox.critical( |
|
258 self, |
257 self.trUtf8("Mercurial Error"), |
259 self.trUtf8("Mercurial Error"), |
258 errMsg) |
260 errMsg) |
259 |
261 |
260 if output: |
262 if output: |
261 parents = [p for p in output.strip().splitlines()] |
263 parents = [p for p in output.strip().splitlines()] |