Mercurial > hg
changeset 26092:014044dbd4e8
graphmod: stop building a list out of branchgroupiter
Not only does this defeat the purpose of having `branchgroupiter` an iterable, but
this also makes revs something else than a smartset preventing to use revs.min()
in the call to reachablerevs.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 21 Aug 2015 16:03:25 -0700 |
parents | 60bbd4f9abd1 |
children | 204131131766 |
files | mercurial/graphmod.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/graphmod.py Mon Aug 24 15:40:42 2015 -0700 +++ b/mercurial/graphmod.py Fri Aug 21 16:03:25 2015 -0700 @@ -247,7 +247,8 @@ if firstbranchrevset: firstbranch = repo.revs(firstbranchrevset) parentrevs = repo.changelog.parentrevs - revs = list(groupbranchiter(revs, parentrevs, firstbranch)) + revs = groupbranchiter(revs, parentrevs, firstbranch) + revs = revset.baseset(revs) for rev in revs: ctx = repo[rev]