hgext/convert/git.py
changeset 5336 24de027551c1
parent 5234 20770c5d41e0
parent 5335 88e931f74e8b
child 5380 a5a7f7fd5554
--- a/hgext/convert/git.py
+++ b/hgext/convert/git.py
@@ -56,9 +56,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")