changeset 10089:8fab31727037

inotify: follow new files if they are regular or a symlink. Fixes run-tests.py --inotify symlink-basic
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Fri, 27 Nov 2009 09:23:10 +0900
parents ec8304e66ea5
children a3ad96ead8f0
files hgext/inotify/linuxserver.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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