Show More
@@ -311,10 +311,6 b' class repowatcher(object):' | |||||
311 | dd[fn] = newstatus |
|
311 | dd[fn] = newstatus | |
312 | else: |
|
312 | else: | |
313 | d.pop(fn, None) |
|
313 | d.pop(fn, None) | |
314 | elif not newstatus: |
|
|||
315 | # a directory is being removed, check its contents |
|
|||
316 | for subfile, b in oldstatus.copy().iteritems(): |
|
|||
317 | self._updatestatus(wfn + '/' + subfile, None) |
|
|||
318 |
|
314 | |||
319 |
|
315 | |||
320 | def check_deleted(self, key): |
|
316 | def check_deleted(self, key): | |
@@ -483,8 +479,12 b' class repowatcher(object):' | |||||
483 | (self.event_time(), wpath)) |
|
479 | (self.event_time(), wpath)) | |
484 |
|
480 | |||
485 | if evt.mask & inotify.IN_ISDIR: |
|
481 | if evt.mask & inotify.IN_ISDIR: | |
|
482 | tree = self.dir(self.tree, wpath).copy() | |||
|
483 | for wfn, ignore in self.walk('?', tree): | |||
|
484 | self.deletefile(join(wpath, wfn), '?') | |||
486 | self.scan(wpath) |
|
485 | self.scan(wpath) | |
487 | self.schedule_work(wpath, 'd') |
|
486 | else: | |
|
487 | self.schedule_work(wpath, 'd') | |||
488 |
|
488 | |||
489 | def process_modify(self, wpath, evt): |
|
489 | def process_modify(self, wpath, evt): | |
490 | if self.ui.debugflag: |
|
490 | if self.ui.debugflag: |
General Comments 0
You need to be logged in to leave comments.
Login now