Mercurial > hg > CommitWatcher
comparison commitwatcher/store.py @ 43:ef90a853afd1
stubbing
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Wed, 06 Nov 2013 22:58:07 -0800 |
| parents | cd590e1722d6 |
| children |
comparison
equal
deleted
inserted
replaced
| 42:cd590e1722d6 | 43:ef90a853afd1 |
|---|---|
| 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 | 31 |
| 32 def ancestry(self, path): | 32 def paths(self): |
| 33 sep = '/' # unix/url-style separators | |
| 34 path = path.split('/') | |
| 35 paths = [] | |
| 36 while path: | |
| 37 paths.append(sep.join(path)) | |
| 38 path.pop() | |
| 39 return paths | |
| 40 | |
| 41 def paths(self, *commits): | |
| 42 """ | 33 """ |
| 43 return paths touched by commits | 34 return paths touched by commits |
| 44 """ | 35 """ |
| 45 | 36 |
| 46 paths = set() | 37 paths = set() |
