inotify: avoid passing potentially stale stat to update
authorMatt Mackall <mpm@selenic.com>
Wed, 22 Oct 2008 19:40:32 -0500
changeset 7220 60826e071ce2
parent 7219 1f6d2e487135
child 7223 5d14b06b1cc1
inotify: avoid passing potentially stale stat to update
hgext/inotify/server.py
--- a/hgext/inotify/server.py	Wed Oct 22 19:40:32 2008 -0500
+++ b/hgext/inotify/server.py	Wed Oct 22 19:40:32 2008 -0500
@@ -338,7 +338,7 @@
             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: