hgext/convert/git.py
changeset 8456 e9e2a2c9b294
parent 8271 e3d3dad805f9
child 10263 25e572394f5c
--- a/hgext/convert/git.py	Sun May 17 03:02:12 2009 +0200
+++ b/hgext/convert/git.py	Sun May 17 03:04:17 2009 +0200
@@ -63,7 +63,7 @@
         self.modecache = {}
         fh = self.gitcmd("git diff-tree -z --root -m -r %s" % version)
         changes = []
-        seen = {}
+        seen = set()
         entry = None
         for l in fh.read().split('\x00'):
             if not entry:
@@ -73,7 +73,7 @@
                 continue
             f = l
             if f not in seen:
-                seen[f] = 1
+                seen.add(f)
                 entry = entry.split()
                 h = entry[3]
                 p = (entry[1] == "100755")