comparison hgext/inotify/server.py @ 7220:60826e071ce2

inotify: avoid passing potentially stale stat to update
author Matt Mackall <mpm@selenic.com>
date Wed, 22 Oct 2008 19:40:32 -0500
parents 4033195d455b
children 810ca383da9c
comparison
equal deleted inserted replaced
7219:1f6d2e487135 7220:60826e071ce2
336 wtopdir += '/' 336 wtopdir += '/'
337 for wfn, state in ds.iteritems(): 337 for wfn, state in ds.iteritems():
338 if not wfn.startswith(wtopdir): 338 if not wfn.startswith(wtopdir):
339 continue 339 continue
340 status = state[0] 340 status = state[0]
341 st = self.getstat(wfn) 341 st = self.stat(wfn)
342 if status == 'r' and not st: 342 if status == 'r' and not st:
343 self.updatestatus(wfn, st, status=status) 343 self.updatestatus(wfn, st, status=status)
344 else: 344 else:
345 self.updatestatus(wfn, st) 345 self.updatestatus(wfn, st)
346 self.check_deleted('!') 346 self.check_deleted('!')