##// END OF EJS Templates
inotify: remove unused variables
Benoit Boissinot -
r8786:55af9be4 default
parent child Browse files
Show More
@@ -88,7 +88,7 b' def walk(repo, root):'
88
88
89 return walkit(root, root == '')
89 return walkit(root, root == '')
90
90
91 def _explain_watch_limit(ui, repo, count):
91 def _explain_watch_limit(ui, repo):
92 path = '/proc/sys/fs/inotify/max_user_watches'
92 path = '/proc/sys/fs/inotify/max_user_watches'
93 try:
93 try:
94 limit = int(file(path).read())
94 limit = int(file(path).read())
@@ -219,7 +219,7 b' class repowatcher(pollable):'
219 return
219 return
220 if err.errno != errno.ENOSPC:
220 if err.errno != errno.ENOSPC:
221 raise
221 raise
222 _explain_watch_limit(self.ui, self.repo, self.watches)
222 _explain_watch_limit(self.ui, self.repo)
223
223
224 def setup(self):
224 def setup(self):
225 self.ui.note(_('watching directories under %r\n') % self.repo.root)
225 self.ui.note(_('watching directories under %r\n') % self.repo.root)
@@ -357,7 +357,6 b' class repowatcher(pollable):'
357 for d in dirs:
357 for d in dirs:
358 self.add_watch(join(root, d), self.mask)
358 self.add_watch(join(root, d), self.mask)
359 wroot = root[len(self.wprefix):]
359 wroot = root[len(self.wprefix):]
360 d = self.dir(self.tree, wroot)
361 for fn in files:
360 for fn in files:
362 wfn = join(wroot, fn)
361 wfn = join(wroot, fn)
363 self.updatefile(wfn, self.getstat(wfn))
362 self.updatefile(wfn, self.getstat(wfn))
General Comments 0
You need to be logged in to leave comments. Login now