inotify: fixup rebuilding ignore
authorMatt Mackall <mpm@selenic.com>
Sun, 12 Oct 2008 15:21:08 -0500
changeset 7085 1fcc282e2c43
parent 7084 f5c18a581b8b
child 7086 4033195d455b
inotify: fixup rebuilding ignore
hgext/inotify/server.py
--- a/hgext/inotify/server.py	Fri Oct 10 12:08:49 2008 -0500
+++ b/hgext/inotify/server.py	Sun Oct 12 15:21:08 2008 -0500
@@ -382,8 +382,8 @@
         # But it's easier to do nothing than to open that can of
         # worms.
 
-        if self.repo.dirstate.ignorefunc is not None:
-            self.repo.dirstate.ignorefunc = None
+        if '_ignore' in self.repo.dirstate.__dict__:
+            delattr(self.repo.dirstate, '_ignore')
             self.ui.note(_('rescanning due to .hgignore change\n'))
             self.scan()