stablerange: use subranges from the main class in subrangesclosure
This is the last method used on the class.
--- 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)