# HG changeset patch # User Lucas Moscovicz # Date 1394812006 25200 # Node ID e87bd3485a07f4b231febef26c6797855a64af3d # Parent 46f93b7660b6abb7273136c099b1ff55ada85838 graphmod: changed code in dagwalker to use lazy implementations Used lazy methods when possible. diff -r 46f93b7660b6 -r e87bd3485a07 mercurial/graphmod.py --- a/mercurial/graphmod.py Fri Mar 14 08:47:57 2014 -0700 +++ b/mercurial/graphmod.py Fri Mar 14 08:46:46 2014 -0700 @@ -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()