diff hgext/inotify/server.py @ 7082:be81b4788115

inotify: fix confusion on files in lookup state
author Matt Mackall <mpm@selenic.com>
date Fri, 10 Oct 2008 11:29:30 -0500
parents ddfcefab8b97
children 1fcc282e2c43
line wrap: on
line diff
--- 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):