inotify: Removing the unnecessary "inotifyserver" class variable.
authorNicolas Dumazet <nicdumz.commits@gmail.com>
Fri, 08 May 2009 12:19:57 +0900
changeset 8557 67f76a4463ef
parent 8556 f5fae700cc00
child 8558 5726bb290bfe
child 8599 1f706b1b62f3
inotify: Removing the unnecessary "inotifyserver" class variable.
hgext/inotify/__init__.py
hgext/inotify/server.py
--- 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])