# HG changeset patch # User Matt Mackall # Date 2008-10-23 00:40:32 # Node ID 60826e071ce21d9f578723c02c734a44baaba496 # Parent 1f6d2e4871356c19865915e973ddf7f9b3ae24c5 inotify: avoid passing potentially stale stat to update diff --git a/hgext/inotify/server.py b/hgext/inotify/server.py --- a/hgext/inotify/server.py +++ b/hgext/inotify/server.py @@ -338,7 +338,7 @@ class Watcher(object): if not wfn.startswith(wtopdir): continue status = state[0] - st = self.getstat(wfn) + st = self.stat(wfn) if status == 'r' and not st: self.updatestatus(wfn, st, status=status) else: