comparison commitwatcher/store.py @ 42:cd590e1722d6

dup
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 05 Nov 2013 03:03:06 -0800
parents b04538e7f9f3
children ef90a853afd1
comparison
equal deleted inserted replaced
41:ce31890ac3cd 42:cd590e1722d6
26 def add(self, commit): 26 def add(self, commit):
27 """adds a commit to the store""" 27 """adds a commit to the store"""
28 if commit.revision not in self: 28 if commit.revision not in self:
29 return 29 return
30 self.store(commit) 30 self.store(commit)
31
32 @abstractmethod
33 def paths(self, *commits):
34 """return all paths touched for a given commit"""
35 31
36 def ancestry(self, path): 32 def ancestry(self, path):
37 sep = '/' # unix/url-style separators 33 sep = '/' # unix/url-style separators
38 path = path.split('/') 34 path = path.split('/')
39 paths = [] 35 paths = []