Mercurial > hg
changeset 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 | 46f93b7660b6 |
children | 0132cbe30c41 |
files | mercurial/graphmod.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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()