inotify: Removing the unnecessary "inotifyserver" class variable.
--- 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])