changeset 1388:5eb2d3c54165

convert-repo: change duplicate elimination
author Matt Mackall <mpm@selenic.com>
date Wed, 05 Oct 2005 19:26:41 -0700
parents 0c7e8d345564
children 9b3ef6f3cef5
files contrib/convert-repo
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)