comparison mercurial/localrepo.py @ 11603:2eab5025f804

changegroupsubset: remove unneeded cast to list
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Fri, 16 Jul 2010 18:35:15 +0200
parents 5be142109ed4
children c4f6f0a1bd5a
comparison
equal deleted inserted replaced
11602:ba2520dd1e29 11603:2eab5025f804
1311 knownheads = set() 1311 knownheads = set()
1312 # We assume that all parents of bases are known heads. 1312 # We assume that all parents of bases are known heads.
1313 for n in bases: 1313 for n in bases:
1314 knownheads.update(cl.parents(n)) 1314 knownheads.update(cl.parents(n))
1315 knownheads.discard(nullid) 1315 knownheads.discard(nullid)
1316 knownheads = list(knownheads)
1317 if knownheads: 1316 if knownheads:
1318 # Now that we know what heads are known, we can compute which 1317 # Now that we know what heads are known, we can compute which
1319 # changesets are known. The recipient must know about all 1318 # changesets are known. The recipient must know about all
1320 # changesets required to reach the known heads from the null 1319 # changesets required to reach the known heads from the null
1321 # changeset. 1320 # changeset.