Mercurial > hg > CommitWatcher
view commitwatcher/event.py @ 39:b04538e7f9f3
stub
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 05 Nov 2013 02:08:21 -0800 |
parents | 798b747b65d6 |
children | 97dfcdeb9a4e |
line wrap: on
line source
""" event system for watching commits """ from abc import abstractmethod class EventHandler(object): """ABC for events""" def match(self, commit): """does this event trigger the handler?""" return True # abstractmethod class PathEventHandler(EventHandler): """events based on paths""" def match(self, commit): pass # TODO: move path handling -> commit object