Mercurial > hg
diff mercurial/graphmod.py @ 20762:e87bd3485a07
graphmod: changed code in dagwalker to use lazy implementations
Used lazy methods when possible.
author | Lucas Moscovicz <lmoscovicz@fb.com> |
---|---|
date | Fri, 14 Mar 2014 08:46:46 -0700 |
parents | e441657b372b |
children | 890e874cacb6 |
line wrap: on
line diff
--- 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()