# HG changeset patch # User Pierre-Yves David # Date 1440198205 25200 # Node ID 014044dbd4e8ead5ace8fad4036bb3238990208f # Parent 60bbd4f9abd1ea842339d7a77f803d58897916c0 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. diff -r 60bbd4f9abd1 -r 014044dbd4e8 mercurial/graphmod.py --- 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]