# HG changeset patch # User Lucas Moscovicz <lmoscovicz@fb.com> # Date 1394812006 25200 # Fri Mar 14 08:46:46 2014 -0700 # Node ID e87bd3485a07f4b231febef26c6797855a64af3d # Parent 46f93b7660b6abb7273136c099b1ff55ada85838 graphmod: changed code in dagwalker to use lazy implementations Used lazy methods when possible. diff --git a/mercurial/graphmod.py b/mercurial/graphmod.py --- a/mercurial/graphmod.py +++ b/mercurial/graphmod.py @@ -34,10 +34,10 @@ return cl = repo.changelog - lowestrev = min(revs) + lowestrev = revs.min() gpcache = {} - knownrevs = set(revs) + knownrevs = revs.set() for rev in revs: ctx = repo[rev] parents = sorted(set([p.rev() for p in ctx.parents()