Mercurial > public > mercurial-scm > hg
diff 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 |
line wrap: on
line diff
--- a/hgext/convert/common.py Sun Feb 03 21:03:46 2008 -0200 +++ b/hgext/convert/common.py Sun Feb 03 21:03:46 2008 -0200 @@ -22,8 +22,8 @@ class commit(object): def __init__(self, author, date, desc, parents, branch=None, rev=None, extra={}): - self.author = author - self.date = date + self.author = author or 'unknown' + self.date = date or '0 0' self.desc = desc self.parents = parents self.branch = branch