Commits

Yuya Nishihara committed 89fde1a

refresh

Comments (0)

Files changed (1)

cmdcore-sesspriv.diff

 # HG changeset patch
 # Date 1376801278 -32400
-# Parent 811de4a949f053f72767d34f0647cb0bc8359efc
+# Parent 540864aa6d69b0747abb422b68c637ea677d890c
 cmdcore: add _-prefix to all private fields of CmdSession
 
 diff --git a/tortoisehg/hgqt/cmdcore.py b/tortoisehg/hgqt/cmdcore.py
          self._abortbyuser = False
  
      ### Public Methods ###
-@@ -155,19 +155,19 @@ class CmdSession(QObject):
+@@ -149,19 +149,19 @@ class CmdSession(QObject):
  
      def _createWorker(self, cmdline):
          cmdline = map(hglib.fromunicode, cmdline)
 +        if self._useproc:
              return CmdProc(cmdline, self)
          else:
-             return thread.CmdThread(cmdline, self._parentWidget())
+             return thread.CmdThread(cmdline, self)
  
      def runNext(self):
 -        if not self.queue:
          self._worker = self._createWorker(cmdline)
          self._worker.started.connect(self.onCommandStarted)
          self._worker.commandFinished.connect(self.onCommandFinished)
-@@ -184,7 +184,7 @@ class CmdSession(QObject):
+@@ -178,7 +178,7 @@ class CmdSession(QObject):
      @pyqtSlot()
      def onCommandStarted(self):
          self.commandStarted.emit()
          self.outputReceived.emit(cmd, 'control')
  
      @pyqtSlot(int)
-@@ -200,12 +200,12 @@ class CmdSession(QObject):
+@@ -194,12 +194,12 @@ class CmdSession(QObject):
              msg = _('[command completed successfully %s]')
          self.outputReceived.emit(msg % time.asctime() + '\n', 'control')