inotify: follow new files if they are regular or a symlink.
authorNicolas Dumazet <nicdumz.commits@gmail.com>
Fri, 27 Nov 2009 09:23:10 +0900
changeset 10089 8fab31727037
parent 10088 ec8304e66ea5
child 10090 a3ad96ead8f0
inotify: follow new files if they are regular or a symlink. Fixes run-tests.py --inotify symlink-basic
hgext/inotify/linuxserver.py
--- a/hgext/inotify/linuxserver.py	Wed Dec 16 12:09:25 2009 +0100
+++ b/hgext/inotify/linuxserver.py	Fri Nov 27 09:23:10 2009 +0900
@@ -250,7 +250,7 @@
             self.update_hgignore()
         try:
             st = self.stat(wpath)
-            if stat.S_ISREG(st[0]):
+            if stat.S_ISREG(st[0]) or stat.S_ISLNK(st[0]):
                 self.updatefile(wpath, st)
         except OSError:
             pass