Mercurial > hg
comparison contrib/convert-repo @ 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 |
comparison
equal
deleted
inserted
replaced
1387:0c7e8d345564 | 1388:5eb2d3c54165 |
---|---|
252 | 252 |
253 def convert(self): | 253 def convert(self): |
254 heads = self.source.getheads() | 254 heads = self.source.getheads() |
255 parents = self.walktree(heads) | 255 parents = self.walktree(heads) |
256 t = self.toposort(parents) | 256 t = self.toposort(parents) |
257 t = [n for n in t if n not in self.map] | |
257 num = len(t) | 258 num = len(t) |
258 | 259 |
259 for c in t: | 260 for c in t: |
260 num -= 1 | 261 num -= 1 |
261 if c in self.map: continue | |
262 desc = self.commitcache[c][3].splitlines()[0] | 262 desc = self.commitcache[c][3].splitlines()[0] |
263 #print num, desc | 263 #print num, desc |
264 self.copy(c) | 264 self.copy(c) |
265 | 265 |
266 tags = self.source.gettags() | 266 tags = self.source.gettags() |