Show More
@@ -22,8 +22,8 b" SKIPREV = 'SKIP'" | |||||
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 |
@@ -99,7 +99,6 b' class convert_git(converter_source):' | |||||
99 | tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:] |
|
99 | tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:] | |
100 | tz = -int(tzs) * (int(tzh) * 3600 + int(tzm)) |
|
100 | tz = -int(tzs) * (int(tzh) * 3600 + int(tzm)) | |
101 | date = tm + " " + str(tz) |
|
101 | date = tm + " " + str(tz) | |
102 | author = author or "unknown" |
|
|||
103 |
|
102 | |||
104 | c = commit(parents=parents, date=date, author=author, desc=message, |
|
103 | c = commit(parents=parents, date=date, author=author, desc=message, | |
105 | rev=version) |
|
104 | rev=version) |
General Comments 0
You need to be logged in to leave comments.
Login now