hgext/convert/git.py
changeset 5336 24de027551c1
parent 5247 20770c5d41e0
parent 5335 88e931f74e8b
child 5380 a5a7f7fd5554
--- a/hgext/convert/git.py	Mon Sep 24 12:42:25 2007 -0500
+++ b/hgext/convert/git.py	Mon Sep 24 19:14:18 2007 -0300
@@ -56,9 +56,14 @@
         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")