changeset 23006:bb1bd9ee323d

dagwalker: drop a useless intermediate variable The variable used to contain revs.set() but as the `.set()` has been removed it is now useless.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 08 Oct 2014 02:43:51 -0700
parents 9bfe68357c01
children 03f3af8f4415
files mercurial/graphmod.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/graphmod.py	Sat Oct 11 01:39:20 2014 -0700
+++ b/mercurial/graphmod.py	Wed Oct 08 02:43:51 2014 -0700
@@ -37,11 +37,10 @@
     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]