convert-repo: change duplicate elimination
authorMatt Mackall <mpm@selenic.com>
Wed, 05 Oct 2005 19:26:41 -0700
changeset 1388 5eb2d3c54165
parent 1387 0c7e8d345564
child 1389 9b3ef6f3cef5
convert-repo: change duplicate elimination
contrib/convert-repo
--- a/contrib/convert-repo	Wed Oct 05 19:25:45 2005 -0700
+++ b/contrib/convert-repo	Wed Oct 05 19:26:41 2005 -0700
@@ -254,11 +254,11 @@
         heads = self.source.getheads()
         parents = self.walktree(heads)
         t = self.toposort(parents)
+        t = [n for n in t if n not in self.map]
         num = len(t)
 
         for c in t:
             num -= 1
-            if c in self.map: continue
             desc = self.commitcache[c][3].splitlines()[0]
             #print num, desc
             self.copy(c)