Mercurial > hg
diff hgext/inotify/server.py @ 6762:f67d1468ac50
util: add sort helper
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 27 Jun 2008 18:28:45 -0500 |
parents | c86207d41512 |
children | b5a6fce0bc29 |
line wrap: on
line diff
--- a/hgext/inotify/server.py Fri Jun 27 14:53:30 2008 -0500 +++ b/hgext/inotify/server.py Fri Jun 27 18:28:45 2008 -0500 @@ -534,9 +534,7 @@ self.ui.note('%s processing %d deferred events as %d\n' % (self.event_time(), self.deferred, len(self.eventq))) - eventq = self.eventq.items() - eventq.sort() - for wpath, evts in eventq: + for wpath, evts in util.sort(self.eventq.items()): for evt in evts: self.deferred_event(wpath, evt) self.eventq.clear()