1. André Sintzoff
  2. thg-sintzoff

Commits

Yuya Nishihara  committed edf75e4

repoagent: delay forced status polling until command finishes

pollStatus wasn't designed as public method yet. RepoAgent should avoid
emitting changed signals while running.

  • Participants
  • Parent commits 4c44cf5
  • Branches default

Comments (0)

Files changed (1)

File tortoisehg/hgqt/thgrepo.py

View file
 
     def pollStatus(self):
         """Force checking changes to emit corresponding signals"""
+        if self._cmdagent.isBusy():
+            return  # delayed until _onBusyChanged(False)
         self._watcher.pollStatus()
 
     @pyqtSlot()
         if busy:
             self.stopMonitoring()
         else:
-            self.pollStatus()
+            self._watcher.pollStatus()
             self.startMonitoringIfEnabled()
         self.busyChanged.emit(busy)