Changeset 44e4072dd0d3…
Parent b9dfd5b5867f…
by
Changes to one file · Browse files at 44e4072dd0d3 Showing diff from parent b9dfd5b5867f Diff from another changeset...
@@ -40,16 +40,16 @@ if _ui is None:
_ui = uimod.ui()
repo = bundlerepo.bundlerepository(_ui, path, bundle)
+ repo.__class__ = _extendrepo(repo)
repo._pyqtobj = ThgRepoWrapper(repo)
- repo.__class__ = _extendrepo(repo)
return repo
if create or path not in _repocache:
if _ui is None:
_ui = uimod.ui()
try:
repo = hg.repository(_ui, path, create)
+ repo.__class__ = _extendrepo(repo)
repo._pyqtobj = ThgRepoWrapper(repo)
- repo.__class__ = _extendrepo(repo)
_repocache[path] = repo
return repo
except EnvironmentError:
@@ -107,6 +107,11 @@ if hglib.tounicode(f) not in files:
dbgoutput('add file to watcher:', f)
self.watcher.addPath(f)
+ _, existing = self.repo.uifiles()
+ for f in existing:
+ if f and hglib.tounicode(f) not in files:
+ dbgoutput('add ui file to watcher:', f)
+ self.watcher.addPath(f)
def pollStatus(self):
if not os.path.exists(self.repo.path):
|
Loading...