hgext/inotify/__init__.py
changeset 14945 11aad09a6370
parent 11321 40c06bbf58be
child 16683 525fdb738975
--- a/hgext/inotify/__init__.py	Mon Jul 25 15:30:19 2011 -0500
+++ b/hgext/inotify/__init__.py	Mon Jul 25 20:37:12 2011 -0500
@@ -11,6 +11,7 @@
 # todo: socket permissions
 
 from mercurial.i18n import _
+from mercurial import util
 import server
 from client import client, QueryFailed
 
@@ -31,7 +32,7 @@
         ui.write(('  %s/\n') % path)
 
 def reposetup(ui, repo):
-    if not hasattr(repo, 'dirstate'):
+    if not util.safehasattr(repo, 'dirstate'):
         return
 
     class inotifydirstate(repo.dirstate.__class__):