changeset 8557:67f76a4463ef

inotify: Removing the unnecessary "inotifyserver" class variable.
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Fri, 08 May 2009 12:19:57 +0900
parents f5fae700cc00
children 5726bb290bfe 1f706b1b62f3
files hgext/inotify/__init__.py hgext/inotify/server.py
diffstat 2 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/inotify/__init__.py	Wed May 06 01:40:03 2009 +0900
+++ b/hgext/inotify/__init__.py	Fri May 08 12:19:57 2009 +0900
@@ -59,9 +59,6 @@
     repo = proxy(repo)
 
     class inotifydirstate(repo.dirstate.__class__):
-        # Set to True if we're the inotify server, so we don't attempt
-        # to recurse.
-        inotifyserver = False
 
         # We'll set this to false after an unsuccessful attempt so that
         # next calls of status() within the same instance don't try again
@@ -72,7 +69,7 @@
             files = match.files()
             if '.' in files:
                 files = []
-            if self._inotifyon and not ignored and not self.inotifyserver:
+            if self._inotifyon and not ignored:
                 cli = client(ui, repo)
                 try:
                     result = cli.statusquery(files, match, False,
--- a/hgext/inotify/server.py	Wed May 06 01:40:03 2009 +0900
+++ b/hgext/inotify/server.py	Fri May 08 12:19:57 2009 +0900
@@ -144,8 +144,6 @@
         self.registered = True
         self.fileno = self.watcher.fileno
 
-        self.repo.dirstate.__class__.inotifyserver = True
-
         self.tree = {}
         self.statcache = {}
         self.statustrees = dict([(s, {}) for s in self.statuskeys])