Mercurial > hg > CommitWatcher
comparison commitwatcher/store.py @ 2:4cb3971d9d9d
commitwatcher/__init__.py commitwatcher/agent.py commitwatcher/main.py setup.py commitwatcher/commit.py commitwatcher/store.py mozbasewatcher.py
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Thu, 26 Sep 2013 21:35:29 -0700 |
| parents | |
| children | d85093ba9f45 |
comparison
equal
deleted
inserted
replaced
| 1:4e24f3c6610c | 2:4cb3971d9d9d |
|---|---|
| 1 from abc import abstractmethod | |
| 2 | |
| 3 class CommitStore(object): | |
| 4 """ABC for commits""" | |
| 5 | |
| 6 @abstractmethod | |
| 7 def add(self, commit): | |
| 8 """adds a commit to the store""" | |
| 9 | |
| 10 class MemoryStore(CommitStore): | |
| 11 """store in volatile memory""" | |
| 12 # volatile! | |
| 13 | |
| 14 def add(self, commit): | |
| 15 raise NotImplementedError |
