equal
deleted
inserted
replaced
2 |
2 |
3 class NoRepo(Exception): pass |
3 class NoRepo(Exception): pass |
4 |
4 |
5 class commit(object): |
5 class commit(object): |
6 def __init__(self, **parts): |
6 def __init__(self, **parts): |
|
7 self.rev = None |
|
8 self.branch = None |
|
9 |
7 for x in "author date desc parents".split(): |
10 for x in "author date desc parents".split(): |
8 if not x in parts: |
11 if not x in parts: |
9 raise util.Abort("commit missing field %s" % x) |
12 raise util.Abort("commit missing field %s" % x) |
10 self.__dict__.update(parts) |
13 self.__dict__.update(parts) |
11 if not self.desc or self.desc.isspace(): |
14 if not self.desc or self.desc.isspace(): |