Mercurial > evolve
changeset 2176:f5e1e43915a1
stablerange: use subranges from the main class in subrangesclosure
This is the last method used on the class.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Wed, 22 Mar 2017 19:21:41 +0100 |
parents | 4162dbe7ff5c |
children | 61c52915d12b |
files | hgext3rd/evolve/stablerange.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/stablerange.py Wed Mar 22 19:21:18 2017 +0100 +++ b/hgext3rd/evolve/stablerange.py Wed Mar 22 19:21:41 2017 +0100 @@ -135,11 +135,12 @@ This is intended for debug purposes. Range are returned from largest to smallest in terms of number of revision it contains.""" + subranges = repo.stablerange.subranges toproceed = [stablerange(repo, r, 0, ) for r in heads] ranges = set(toproceed) while toproceed: entry = toproceed.pop() - for r in entry.subranges(): + for r in subranges(repo, entry): if r not in ranges: ranges.add(r) toproceed.append(r)