Mercurial > hg
comparison hgext/convert/common.py @ 4873:28b23b9073a8
convert: record the source revision in the changelog
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Fri, 13 Jul 2007 08:28:57 -0700 |
parents | 1fcdf2fe3d7c |
children | cdd33a048289 |
comparison
equal
deleted
inserted
replaced
4872:419a6f715c6a | 4873:28b23b9073a8 |
---|---|
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(): |