# HG changeset patch # User Pierre-Yves David # Date 2014-10-08 09:43:51 # Node ID bb1bd9ee323dcf3d72db5a9d31bb11e4cf66aa30 # Parent 9bfe68357c019cf77e04c05d120320c68e536a55 dagwalker: drop a useless intermediate variable The variable used to contain revs.set() but as the `.set()` has been removed it is now useless. diff --git a/mercurial/graphmod.py b/mercurial/graphmod.py --- a/mercurial/graphmod.py +++ b/mercurial/graphmod.py @@ -37,11 +37,10 @@ def dagwalker(repo, revs): lowestrev = revs.min() gpcache = {} - knownrevs = revs for rev in revs: ctx = repo[rev] parents = sorted(set([p.rev() for p in ctx.parents() - if p.rev() in knownrevs])) + if p.rev() in revs])) mpars = [p.rev() for p in ctx.parents() if p.rev() != nullrev and p.rev() not in parents]