comparison commitwatcher/store.py @ 38:035368f84847

indent
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 04 Nov 2013 23:20:32 -0800
parents 3edb91cfd3c1
children b04538e7f9f3
comparison
equal deleted inserted replaced
37:798b747b65d6 38:035368f84847
1 """
2 storage classes for commits and related data
3 """
4
1 from abc import abstractmethod 5 from abc import abstractmethod
2 6
3 __all__ = ['CommitStore', 'MemoryStore'] 7 __all__ = ['CommitStore', 'MemoryStore']
4 8
5 class CommitStore(object): 9 class CommitStore(object):
58 self._commits = [] 62 self._commits = []
59 63
60 def store(self, commit): 64 def store(self, commit):
61 paths = self.paths(commit) 65 paths = self.paths(commit)
62 for path in paths: 66 for path in paths:
63 self.path_to_commit.set_default(path, []).append(commit) 67 self.path_to_commit.set_default(path, []).append(commit)
64 raise NotImplementedError() 68 raise NotImplementedError
65 69