inotify: rename handle_event to handle_pollevent to avoid confusion
authorNicolas Dumazet <nicdumz.commits@gmail.com>
Thu, 21 May 2009 19:22:29 +0900
changeset 8608 228db070bfc4
parent 8607 e17eba98c789
child 8609 aeaa0bd9dc24
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.
hgext/inotify/server.py
--- 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()