Show More
@@ -103,18 +103,18 class convert_cvs(converter_source): | |||||
103 | if maxrev and int(id) > maxrev: |
|
103 | if maxrev and int(id) > maxrev: | |
104 | # ignore everything |
|
104 | # ignore everything | |
105 | state = 3 |
|
105 | state = 3 | |
106 | elif l.startswith("Date"): |
|
106 | elif l.startswith("Date:"): | |
107 | date = util.parsedate(l[6:-1], ["%Y/%m/%d %H:%M:%S"]) |
|
107 | date = util.parsedate(l[6:-1], ["%Y/%m/%d %H:%M:%S"]) | |
108 | date = util.datestr(date) |
|
108 | date = util.datestr(date) | |
109 | elif l.startswith("Branch"): |
|
109 | elif l.startswith("Branch:"): | |
110 | branch = l[8:-1] |
|
110 | branch = l[8:-1] | |
111 | self.parent[id] = self.lastbranch.get(branch, 'bad') |
|
111 | self.parent[id] = self.lastbranch.get(branch, 'bad') | |
112 | self.lastbranch[branch] = id |
|
112 | self.lastbranch[branch] = id | |
113 | elif l.startswith("Ancestor branch"): |
|
113 | elif l.startswith("Ancestor branch:"): | |
114 | ancestor = l[17:-1] |
|
114 | ancestor = l[17:-1] | |
115 | # figure out the parent later |
|
115 | # figure out the parent later | |
116 | self.parent[id] = self.lastbranch[ancestor] |
|
116 | self.parent[id] = self.lastbranch[ancestor] | |
117 | elif l.startswith("Author"): |
|
117 | elif l.startswith("Author:"): | |
118 | author = self.recode(l[8:-1]) |
|
118 | author = self.recode(l[8:-1]) | |
119 | elif l.startswith("Tag:") or l.startswith("Tags:"): |
|
119 | elif l.startswith("Tag:") or l.startswith("Tags:"): | |
120 | t = l[l.index(':')+1:] |
|
120 | t = l[l.index(':')+1:] |
General Comments 0
You need to be logged in to leave comments.
Login now