changeset 5335 | 88e931f74e8b |
parent 5233 | 9d7052f17d77 |
child 5336 | 24de027551c1 |
--- a/hgext/convert/git.py +++ b/hgext/convert/git.py @@ -61,9 +61,14 @@ class convert_git(converter_source): self.modecache = {} fh = self.gitcmd("git-diff-tree --root -m -r %s" % version) changes = [] + seen = {} for l in fh: - if "\t" not in l: continue + if "\t" not in l: + continue m, f = l[:-1].split("\t") + if f in seen: + continue + seen[f] = 1 m = m.split() h = m[3] p = (m[1] == "100755")