graphmod: changed code in dagwalker to use lazy implementations
authorLucas Moscovicz <lmoscovicz@fb.com>
Fri, 14 Mar 2014 08:46:46 -0700
changeset 20762 e87bd3485a07
parent 20761 46f93b7660b6
child 20763 0132cbe30c41
graphmod: changed code in dagwalker to use lazy implementations Used lazy methods when possible.
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()