changeset 7522:2f4a399a8787

inotify: do not attempt to monkeypatch bundlerepos
author Brendan Cully <brendan@kublai.com>
date Mon, 15 Dec 2008 12:02:18 -0800
parents 49f34b43cf90
children e60aaae83323 4acf5f24912b
files hgext/inotify/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/inotify/__init__.py	Sun Dec 14 23:04:29 2008 -0800
+++ b/hgext/inotify/__init__.py	Mon Dec 15 12:02:18 2008 -0800
@@ -39,7 +39,7 @@
     cmdutil.service(opts, initfn=service.init, runfn=service.run)
 
 def reposetup(ui, repo):
-    if not repo.local():
+    if not hasattr(repo, 'dirstate'):
         return
 
     # XXX: weakref until hg stops relying on __del__