##// END OF EJS Templates
inotify: server._updatestatus: simplify control flow
Nicolas Dumazet -
r9348:954f7a87 default
parent child Browse files
Show More
@@ -443,14 +443,13 b' class repowatcher(pollable):'
443 if oldstatus and oldstatus in self.statuskeys \
443 if oldstatus and oldstatus in self.statuskeys \
444 and oldstatus != newstatus:
444 and oldstatus != newstatus:
445 del self.statustrees[oldstatus].dir(root).files[fn]
445 del self.statustrees[oldstatus].dir(root).files[fn]
446 if newstatus and newstatus != 'i':
446
447 if newstatus in (None, 'i'):
448 d.files.pop(fn, None)
449 elif oldstatus != newstatus:
447 d.files[fn] = newstatus
450 d.files[fn] = newstatus
448 if newstatus in self.statuskeys:
451 if newstatus != 'n':
449 dd = self.statustrees[newstatus].dir(root)
452 self.statustrees[newstatus].dir(root).files[fn] = newstatus
450 if oldstatus != newstatus or fn not in dd.files:
451 dd.files[fn] = newstatus
452 else:
453 d.files.pop(fn, None)
454
453
455
454
456 def check_deleted(self, key):
455 def check_deleted(self, key):
General Comments 0
You need to be logged in to leave comments. Login now