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.

Comments (0)

Files changed (1)

tortoisehg/hgqt/thgrepo.py

 
     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)