comparison commitwatcher/commit.py @ 43:ef90a853afd1

stubbing
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 06 Nov 2013 22:58:07 -0800
parents 4c53f4cc6ffe
children 4f8fe143b977
comparison
equal deleted inserted replaced
42:cd590e1722d6 43:ef90a853afd1
2 commit object model 2 commit object model
3 """ 3 """
4 4
5 class Commit(object): 5 class Commit(object):
6 6
7 def __init__(self, message, datetime, author, paths, revision): 7 def __init__(self, message, datetime, author, files, revision):
8 self.message = message 8 self.message = message
9 self.datetime = datetime 9 self.datetime = datetime
10 self.author= author 10 self.author= author
11 self.paths = paths 11 self.paths = paths
12 self.revision = revision 12 self.revision = revision
13
14 def ancestry(self, ):
15 sep = '/' # unix/url-style separators
16 path = path.split('/')
17 paths = []
18 while path:
19 paths.append(sep.join(path))
20 path.pop()
21 return paths
22