Commits

Yuya Nishihara committed 9ea1bba

refresh

  • Participants
  • Parent commits 89fde1a

Comments (0)

Files changed (1)

cmdcore-sessprivmeth.diff

 # HG changeset patch
 # Date 1376801446 -32400
-# Parent 86cd27476fd5a45f8dc3f8362e92d9d580b50eaa
+# Parent 12fa613b0f43259a0a8f1de20a2de6a1e8c22d43
 cmdcore: add _-prefix to all private methods of CmdSession
 
 diff --git a/tortoisehg/hgqt/cmdcore.py b/tortoisehg/hgqt/cmdcore.py
          # because inter-thread signal is queued.
          return bool(self._worker)
  
-@@ -160,7 +160,7 @@ class CmdSession(QObject):
+@@ -154,7 +154,7 @@ class CmdSession(QObject):
          else:
-             return thread.CmdThread(cmdline, self._parentWidget())
+             return thread.CmdThread(cmdline, self)
  
 -    def runNext(self):
 +    def _runNext(self):
          if not self._queue:
              return False
  
-@@ -169,8 +169,8 @@ class CmdSession(QObject):
+@@ -163,8 +163,8 @@ class CmdSession(QObject):
          if not self._display:
              self._display = _prettifycmdline(cmdline)
          self._worker = self._createWorker(cmdline)
  
          self._worker.outputReceived.connect(self.outputReceived)
          self._worker.progressReceived.connect(self.progressReceived)
-@@ -182,13 +182,13 @@ class CmdSession(QObject):
+@@ -176,13 +176,13 @@ class CmdSession(QObject):
      ### Signal Handlers ###
  
      @pyqtSlot()
          if ret == -1:
              if self._abortbyuser:
                  msg = _('[command terminated by user %s]')
-@@ -202,7 +202,7 @@ class CmdSession(QObject):
+@@ -196,7 +196,7 @@ class CmdSession(QObject):
  
          self._display = None
          self._worker.setParent(None)  # assist gc