Commits

Yuya Nishihara committed b440293

workbench: eliminate signal chain to scan reporegistry on repository changed

  • Participants
  • Parent commits 32bd325

Comments (0)

Files changed (2)

File tortoisehg/hgqt/repowidget.py

     # The following signals should be exchanged directly between workbench and
     # thgrepo. But it isn't possible because workbench cannot filter out known
     # repo from the result of thgrepo.repository().
-    repoChanged = pyqtSignal(QString)
     repoConfigChanged = pyqtSignal(QString)
     shortNameChanged = pyqtSignal(QString, QString)
     baseNodeChanged = pyqtSignal(QString, object)
         else:
             self.dirty = True
 
-        # Update the repo registry entries related to the current repo
-        self.repoChanged.emit(hglib.tounicode(self.repo.root))
-
     @pyqtSlot()
     def configChanged(self):
         'Repository is reporting its config files have changed'

File tortoisehg/hgqt/workbench.py

         rr.openRepo.connect(self.openRepo)
         rr.removeRepo.connect(self.closeRepo)
         rr.progressReceived.connect(self.progress)
+        self._repomanager.repositoryChanged.connect(rr.scanRepo)
         rr.hide()
         self.addDockWidget(Qt.LeftDockWidgetArea, rr)
 
         rw.toolbarVisibilityChanged.connect(self.updateToolBarActions)
         rw.shortNameChanged.connect(self.reporegistry.shortNameChanged)
         rw.baseNodeChanged.connect(self.reporegistry.baseNodeChanged)
-        rw.repoChanged.connect(self.reporegistry.scanRepo)
 
         tw = self.repoTabsWidget
         # We can open new tabs next to the current one or next to the last tab