mercurial/graphmod.py
changeset 20762 e87bd3485a07
parent 18467 e441657b372b
child 22878 890e874cacb6
equal deleted inserted replaced
20761:46f93b7660b6 20762:e87bd3485a07
    32     """
    32     """
    33     if not revs:
    33     if not revs:
    34         return
    34         return
    35 
    35 
    36     cl = repo.changelog
    36     cl = repo.changelog
    37     lowestrev = min(revs)
    37     lowestrev = revs.min()
    38     gpcache = {}
    38     gpcache = {}
    39 
    39 
    40     knownrevs = set(revs)
    40     knownrevs = revs.set()
    41     for rev in revs:
    41     for rev in revs:
    42         ctx = repo[rev]
    42         ctx = repo[rev]
    43         parents = sorted(set([p.rev() for p in ctx.parents()
    43         parents = sorted(set([p.rev() for p in ctx.parents()
    44                               if p.rev() in knownrevs]))
    44                               if p.rev() in knownrevs]))
    45         mpars = [p.rev() for p in ctx.parents() if
    45         mpars = [p.rev() for p in ctx.parents() if