inotify: fix confusion on files in lookup state
authorMatt Mackall <mpm@selenic.com>
Fri, 10 Oct 2008 11:29:30 -0500
changeset 7082 be81b4788115
parent 7081 2fdbf2ccd03a
child 7083 9dcce703edb8
inotify: fix confusion on files in lookup state
hgext/inotify/server.py
--- a/hgext/inotify/server.py	Sun Oct 12 22:56:43 2008 +0200
+++ b/hgext/inotify/server.py	Fri Oct 10 11:29:30 2008 -0500
@@ -253,6 +253,8 @@
             if not st:
                 return '!'
             st_mode, st_size, st_mtime = st
+            if size == -1:
+                return 'l'
             if size and (size != st_size or (mode ^ st_mode) & 0100):
                 return 'm'
             if time != int(st_mtime):