comparison mercurial/commands.py @ 8464:7af92e70bb25

revlog: use set instead of dict
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun, 17 May 2009 03:49:59 +0200
parents 72538f1909ec
children 6062c6362b2e
comparison
equal deleted inserted replaced
8463:43186df4bb8e 8464:7af92e70bb25
501 "a destination")) 501 "a destination"))
502 base = [repo.lookup(rev) for rev in base] 502 base = [repo.lookup(rev) for rev in base]
503 # create the right base 503 # create the right base
504 # XXX: nodesbetween / changegroup* should be "fixed" instead 504 # XXX: nodesbetween / changegroup* should be "fixed" instead
505 o = [] 505 o = []
506 has = {nullid: None} 506 has = set((nullid,))
507 for n in base: 507 for n in base:
508 has.update(repo.changelog.reachable(n)) 508 has.update(repo.changelog.reachable(n))
509 if revs: 509 if revs:
510 visit = list(revs) 510 visit = list(revs)
511 else: 511 else: