Mercurial > hg
diff hgext/inotify/server.py @ 8608:228db070bfc4
inotify: rename handle_event to handle_pollevent to avoid confusion
event here refers to poll events, and are different from events read in
server.read_events for example, where those events are inotify events.
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Thu, 21 May 2009 19:22:29 +0900 |
parents | e17eba98c789 |
children | aeaa0bd9dc24 |
line wrap: on
line diff
--- a/hgext/inotify/server.py Thu May 21 16:54:05 2009 +0900 +++ b/hgext/inotify/server.py Thu May 21 19:22:29 2009 +0900 @@ -500,7 +500,7 @@ evt.fullpath) sys.exit(0) - def handle_event(self): + def handle_pollevent(self): if self.ui.debugflag: self.ui.note(_('%s readable: %d bytes\n') % (self.event_time(), self.threshold.readable())) @@ -640,7 +640,7 @@ def answer_dbug_query(self): return ['\0'.join(self.repowatcher.debug())] - def handle_event(self): + def handle_pollevent(self): sock, addr = self.sock.accept() cs = common.recvcs(sock) @@ -729,7 +729,7 @@ raise if events: for fd, event in events: - self.table[fd].handle_event() + self.table[fd].handle_pollevent() elif timeobj: timeobj.handle_timeout()