# HG changeset patch # User Nicolas Dumazet # Date 1241752797 -32400 # Node ID 67f76a4463ef31d60393668c0f9d0dc28c8e25d4 # Parent f5fae700cc0091fc152f3a03a4f6b11fc80ff3a4 inotify: Removing the unnecessary "inotifyserver" class variable. diff -r f5fae700cc00 -r 67f76a4463ef hgext/inotify/__init__.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, diff -r f5fae700cc00 -r 67f76a4463ef hgext/inotify/server.py --- 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])