Mercurial > hg > CommitWatcher
changeset 6:883c88b13142
commitwatcher/agent.py commitwatcher/store.py mozbasewatcher.py
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 27 Sep 2013 13:03:40 -0700 |
parents | d85093ba9f45 |
children | 296af1d32b6a |
files | commitwatcher/agent.py commitwatcher/store.py mozbasewatcher.py |
diffstat | 3 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/commitwatcher/agent.py Fri Sep 27 11:17:27 2013 -0700 +++ b/commitwatcher/agent.py Fri Sep 27 13:03:40 2013 -0700 @@ -4,16 +4,17 @@ import feedparser from .commit import Commit +from .store import MemoryStore class Agent(object): """abstract base class""" - def __init__(self, repository, store): + def __init__(self, repository, store=None): """ repository -- repo to monitor """ self.repository = repository - self.store = store + self.store = MemoryStore() if store is None else store class LocalCheckoutAgent(object):