Show More
@@ -61,16 +61,20 b' class convert_git:' | |||||
61 | n,v = e.split(" ", 1) |
|
61 | n,v = e.split(" ", 1) | |
62 | if n == "author": |
|
62 | if n == "author": | |
63 | p = v.split() |
|
63 | p = v.split() | |
64 |
|
|
64 | tm, tz = p[-2:] | |
65 | author = " ".join(p[:-2]) |
|
65 | author = " ".join(p[:-2]) | |
66 | if author[0] == "<": author = author[1:-1] |
|
66 | if author[0] == "<": author = author[1:-1] | |
67 | if n == "committer": |
|
67 | if n == "committer": | |
68 | p = v.split() |
|
68 | p = v.split() | |
69 |
|
|
69 | tm, tz = p[-2:] | |
70 | committer = " ".join(p[:-2]) |
|
70 | committer = " ".join(p[:-2]) | |
71 | if committer[0] == "<": committer = committer[1:-1] |
|
71 | if committer[0] == "<": committer = committer[1:-1] | |
72 |
message += "\ncommitter: %s |
|
72 | message += "\ncommitter: %s\n" % v | |
73 | if n == "parent": parents.append(v) |
|
73 | if n == "parent": parents.append(v) | |
|
74 | ||||
|
75 | tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:] | |||
|
76 | tz = int(tzs) * (int(tzh) * 3600 + int(tzm)) | |||
|
77 | date = tm + " " + str(tz) | |||
74 | return (parents, author, date, message) |
|
78 | return (parents, author, date, message) | |
75 |
|
79 | |||
76 | def gettags(self): |
|
80 | def gettags(self): |
General Comments 0
You need to be logged in to leave comments.
Login now