Changeset fe1734e8a9eb…
Parent 40fa1030ed6f…
by
Changes to one file · Browse files at fe1734e8a9eb Showing diff from parent 40fa1030ed6f Diff from another changeset...
@@ -86,7 +86,7 @@ dbgoutput('not watching F/S events for network drive')
else:
self.watcher = QFileSystemWatcher(self)
- self.watcher.addPath(repo.path)
+ self.watcher.addPath(hglib.tounicode(repo.path))
self.watcher.directoryChanged.connect(self.onDirChange)
self.watcher.fileChanged.connect(self.onFileChange)
self.addMissingPaths()
@@ -110,12 +110,12 @@ for f in existing:
if hglib.tounicode(f) not in files:
dbgoutput('add file to watcher:', f)
- self.watcher.addPath(f)
+ self.watcher.addPath(hglib.tounicode(f))
_, files = self.repo.uifiles()
for f in files:
if f and os.path.exists(f) and hglib.tounicode(f) not in files:
dbgoutput('add ui file to watcher:', f)
- self.watcher.addPath(f)
+ self.watcher.addPath(hglib.tounicode(f))
def pollStatus(self):
if not os.path.exists(self.repo.path):
|
Loading...