Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

stable thgrepo: fix filesystem watcher to work with non-ascii path

Changeset fe1734e8a9eb

Parent 40fa1030ed6f

by Yuya Nishihara

Changes to one file · Browse files at fe1734e8a9eb Showing diff from parent 40fa1030ed6f Diff from another changeset...

 
86
87
88
89
 
90
91
92
 
110
111
112
113
 
114
115
116
117
118
 
119
120
121
 
86
87
88
 
89
90
91
92
 
110
111
112
 
113
114
115
116
117
 
118
119
120
121
@@ -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):