Show More
@@ -71,7 +71,7 b' class convert_cvs(converter_source):' | |||||
71 | elif l.startswith("Ancestor branch"): |
|
71 | elif l.startswith("Ancestor branch"): | |
72 | ancestor = l[17:-1] |
|
72 | ancestor = l[17:-1] | |
73 | # figure out the parent later |
|
73 | # figure out the parent later | |
74 |
self.parent[id] = |
|
74 | self.parent[id] = self.lastbranch[ancestor] | |
75 | elif l.startswith("Author"): |
|
75 | elif l.startswith("Author"): | |
76 | author = self.recode(l[8:-1]) |
|
76 | author = self.recode(l[8:-1]) | |
77 | elif l.startswith("Tag:") or l.startswith("Tags:"): |
|
77 | elif l.startswith("Tag:") or l.startswith("Tags:"): | |
@@ -101,13 +101,14 b' class convert_cvs(converter_source):' | |||||
101 | p = [] |
|
101 | p = [] | |
102 | if branch == "HEAD": |
|
102 | if branch == "HEAD": | |
103 | branch = "" |
|
103 | branch = "" | |
104 |
if branch |
|
104 | if branch: | |
105 | latest = None |
|
105 | latest = None | |
106 | # the last changeset that contains a base |
|
106 | # the last changeset that contains a base | |
107 | # file is our parent |
|
107 | # file is our parent | |
108 | for r in oldrevs: |
|
108 | for r in oldrevs: | |
109 |
latest = max(filerevids |
|
109 | latest = max(filerevids.get(r, None), latest) | |
110 |
|
|
110 | if latest: | |
|
111 | p = [latest] | |||
111 |
|
112 | |||
112 | # add current commit to set |
|
113 | # add current commit to set | |
113 | c = commit(author=author, date=date, parents=p, |
|
114 | c = commit(author=author, date=date, parents=p, |
General Comments 0
You need to be logged in to leave comments.
Login now