Mercurial > hg
diff mercurial/graphmod.py @ 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 | 62371c539c89 |
children | 9cf65f43b49b |
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]