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

stable thgrepo: add uifiles to filesystem watcher correctly

The variable 'files' hides the original list of watched 'files'.

Changeset 1ce23abfe5cc

Parent fe1734e8a9eb

by Yuya Nishihara

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

 
111
112
113
114
115
 
116
117
118
 
111
112
113
 
 
114
115
116
117
@@ -111,8 +111,7 @@
  if hglib.tounicode(f) not in files:   dbgoutput('add file to watcher:', f)   self.watcher.addPath(hglib.tounicode(f)) - _, files = self.repo.uifiles() - for f in files: + for f in self.repo.uifiles()[1]:   if f and os.path.exists(f) and hglib.tounicode(f) not in files:   dbgoutput('add ui file to watcher:', f)   self.watcher.addPath(hglib.tounicode(f))