Mercurial > hg
comparison hgext/convert/common.py @ 5984:9451a941c536
convert: use 'unknown' and '0 0' if commit author or date weren't specified
Closes issue873.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sun, 03 Feb 2008 21:03:46 -0200 |
parents | e495f3f35b2d |
children | 30d2fecaab76 |
comparison
equal
deleted
inserted
replaced
5983:6f1fcbc58efa | 5984:9451a941c536 |
---|---|
20 SKIPREV = 'SKIP' | 20 SKIPREV = 'SKIP' |
21 | 21 |
22 class commit(object): | 22 class commit(object): |
23 def __init__(self, author, date, desc, parents, branch=None, rev=None, | 23 def __init__(self, author, date, desc, parents, branch=None, rev=None, |
24 extra={}): | 24 extra={}): |
25 self.author = author | 25 self.author = author or 'unknown' |
26 self.date = date | 26 self.date = date or '0 0' |
27 self.desc = desc | 27 self.desc = desc |
28 self.parents = parents | 28 self.parents = parents |
29 self.branch = branch | 29 self.branch = branch |
30 self.rev = rev | 30 self.rev = rev |
31 self.extra = extra | 31 self.extra = extra |