Mercurial > hg
diff hgext/inotify/server.py @ 9351:206f7f4c5c2a
inotify: client: no repo use
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Mon, 29 Jun 2009 01:27:34 +0900 |
parents | b789ea382fc0 |
children | 7c01599dd340 |
line wrap: on
line diff
--- a/hgext/inotify/server.py Mon Jun 29 01:09:33 2009 +0900 +++ b/hgext/inotify/server.py Mon Jun 29 01:27:34 2009 +0900 @@ -807,10 +807,10 @@ raise class master(object): - def __init__(self, ui, repo, timeout=None): + def __init__(self, ui, dirstate, root, timeout=None): self.ui = ui - self.repowatcher = repowatcher(ui, repo.dirstate, repo.root) - self.server = server(ui, repo.root, self.repowatcher, timeout) + self.repowatcher = repowatcher(ui, dirstate, root) + self.server = server(ui, root, self.repowatcher, timeout) def shutdown(self): for obj in pollable.instances.itervalues(): @@ -823,7 +823,7 @@ sys.exit(0) pollable.run() -def start(ui, repo): +def start(ui, dirstate, root): def closefds(ignore): # (from python bug #1177468) # close all inherited file descriptors @@ -844,7 +844,7 @@ except OSError: pass - m = master(ui, repo) + m = master(ui, dirstate, root) sys.stdout.flush() sys.stderr.flush()