# HG changeset patch # User Alexis S. L. Carvalho # Date 1202079826 7200 # Node ID 9451a941c536378c4578abcb9df5cda1737d4937 # Parent 6f1fcbc58efa82cc96fcd1f3df97e9c4f1c8cd95 convert: use 'unknown' and '0 0' if commit author or date weren't specified Closes issue873. diff -r 6f1fcbc58efa -r 9451a941c536 hgext/convert/common.py --- 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 diff -r 6f1fcbc58efa -r 9451a941c536 hgext/convert/git.py --- a/hgext/convert/git.py Sun Feb 03 21:03:46 2008 -0200 +++ b/hgext/convert/git.py Sun Feb 03 21:03:46 2008 -0200 @@ -99,7 +99,6 @@ tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:] tz = -int(tzs) * (int(tzh) * 3600 + int(tzm)) date = tm + " " + str(tz) - author = author or "unknown" c = commit(parents=parents, date=date, author=author, desc=message, rev=version)