Mercurial > hg
changeset 8786:55af9be4efac
inotify: remove unused variables
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Sat, 13 Jun 2009 17:23:08 +0200 |
parents | 7a9151bc5b37 |
children | 9aca76502280 |
files | hgext/inotify/server.py |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/inotify/server.py Sat Jun 13 13:14:02 2009 +0200 +++ b/hgext/inotify/server.py Sat Jun 13 17:23:08 2009 +0200 @@ -88,7 +88,7 @@ return walkit(root, root == '') -def _explain_watch_limit(ui, repo, count): +def _explain_watch_limit(ui, repo): path = '/proc/sys/fs/inotify/max_user_watches' try: limit = int(file(path).read()) @@ -219,7 +219,7 @@ return if err.errno != errno.ENOSPC: raise - _explain_watch_limit(self.ui, self.repo, self.watches) + _explain_watch_limit(self.ui, self.repo) def setup(self): self.ui.note(_('watching directories under %r\n') % self.repo.root) @@ -357,7 +357,6 @@ for d in dirs: self.add_watch(join(root, d), self.mask) wroot = root[len(self.wprefix):] - d = self.dir(self.tree, wroot) for fn in files: wfn = join(wroot, fn) self.updatefile(wfn, self.getstat(wfn))