'''Execute Mercurial command'''
'''Cancel running Mercurial command'''
# keep "running" until just before emitting commandFinished. if worker
- # is QThread, isRunning() is cleared earlier than onCommandFinished,
+ # is QThread, isRunning() is cleared earlier than onCommandFinished,
# because inter-thread signal is queued.
return thread.CmdThread(cmdline, self)
self._display = _prettifycmdline(cmdline)
self._worker = self._createWorker(cmdline)
- def onCommandStarted(self):
+ def onCommandStarted(self):
cmd = '%% hg %s\n' % self._display
- def onCommandFinished(self, ret):
+ def onCommandFinished(self, ret):
msg = _('[command terminated by user %s]')
self._worker.setParent(None) # assist gc
- if ret == 0 and self.runNext():
+ if ret == 0 and self.runNext():
return # run next command