summaryrefslogtreecommitdiff
path: root/hgext/inotify/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'hgext/inotify/__init__.py')
-rw-r--r--hgext/inotify/__init__.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/hgext/inotify/__init__.py b/hgext/inotify/__init__.py
index 09c8bef..5e9f2cd 100644
--- a/hgext/inotify/__init__.py
+++ b/hgext/inotify/__init__.py
@@ -11,12 +11,9 @@
# todo: socket permissions
from mercurial.i18n import _
-from mercurial import util
import server
from client import client, QueryFailed
-testedwith = 'internal'
-
def serve(ui, repo, **opts):
'''start an inotify server for this repository'''
server.start(ui, repo.dirstate, repo.root, opts)
@@ -34,7 +31,7 @@ def debuginotify(ui, repo, **opts):
ui.write((' %s/\n') % path)
def reposetup(ui, repo):
- if not util.safehasattr(repo, 'dirstate'):
+ if not hasattr(repo, 'dirstate'):
return
class inotifydirstate(repo.dirstate.__class__):
@@ -48,8 +45,7 @@ def reposetup(ui, repo):
files = match.files()
if '.' in files:
files = []
- if (self._inotifyon and not ignored and not subrepos and
- not self._dirty):
+ if self._inotifyon and not ignored and not subrepos and not self._dirty:
cli = client(ui, repo)
try:
result = cli.statusquery(files, match, False,