Mercurial > hg > CommitWatcher
changeset 40:97dfcdeb9a4e
stub
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 05 Nov 2013 02:10:58 -0800 |
parents | b04538e7f9f3 |
children | ce31890ac3cd |
files | commitwatcher/event.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/commitwatcher/event.py Tue Nov 05 02:08:21 2013 -0800 +++ b/commitwatcher/event.py Tue Nov 05 02:10:58 2013 -0800 @@ -2,11 +2,14 @@ event system for watching commits """ -from abc import abstractmethod +__all__ = ['EventHandler', 'PathEventHandler'] class EventHandler(object): """ABC for events""" + def __init__(self, *notifiers): + self.notifiers = list(notifiers) + def match(self, commit): """does this event trigger the handler?""" return True # abstractmethod