# HG changeset patch # User Jeff Hammel # Date 1383807487 28800 # Node ID ef90a853afd1140f59578cb4346be7f435a53645 # Parent cd590e1722d62ad6f7095d00b22daca402719108 stubbing diff -r cd590e1722d6 -r ef90a853afd1 commitwatcher/commit.py --- a/commitwatcher/commit.py Tue Nov 05 03:03:06 2013 -0800 +++ b/commitwatcher/commit.py Wed Nov 06 22:58:07 2013 -0800 @@ -4,9 +4,19 @@ class Commit(object): - def __init__(self, message, datetime, author, paths, revision): + def __init__(self, message, datetime, author, files, revision): self.message = message self.datetime = datetime self.author= author self.paths = paths self.revision = revision + + def ancestry(self, ): + sep = '/' # unix/url-style separators + path = path.split('/') + paths = [] + while path: + paths.append(sep.join(path)) + path.pop() + return paths + diff -r cd590e1722d6 -r ef90a853afd1 commitwatcher/store.py --- a/commitwatcher/store.py Tue Nov 05 03:03:06 2013 -0800 +++ b/commitwatcher/store.py Wed Nov 06 22:58:07 2013 -0800 @@ -29,16 +29,7 @@ return self.store(commit) - def ancestry(self, path): - sep = '/' # unix/url-style separators - path = path.split('/') - paths = [] - while path: - paths.append(sep.join(path)) - path.pop() - return paths - - def paths(self, *commits): + def paths(self): """ return paths touched by commits """