1. Yuya Nishihara
  2. thg-work

Commits

Yuya Nishihara  committed 45d563d

thgrepo: rename ThgRepoWrapper to RepoAgent for later design change

  • Participants
  • Parent commits 1207d77
  • Successor commits 8346e19
  • Branches default

Comments (0)

Files changed (1)

File tortoisehg/hgqt/thgrepo.py

View file
             _ui = uimod.ui()
         repo = bundlerepo.bundlerepository(_ui, path, bundle)
         repo.__class__ = _extendrepo(repo)
-        repo._pyqtobj = ThgRepoWrapper(repo)
+        repo._pyqtobj = RepoAgent(repo)
         return repo
     if path not in _repocache:
         if _ui is None:
             # get unfiltered repo in version safe manner
             repo = getattr(repo, 'unfiltered', lambda: repo)()
             repo.__class__ = _extendrepo(repo)
-            repo._pyqtobj = ThgRepoWrapper(repo)
+            repo._pyqtobj = RepoAgent(repo)
             _repocache[path] = repo
             return repo
         except EnvironmentError:
             pass
 
 
-class ThgRepoWrapper(QObject):
+class RepoAgent(QObject):
+    """Proxy access to repository and keep its states up-to-date"""
 
     configChanged = pyqtSignal()
     repositoryChanged = pyqtSignal()