stablerange: use depthrevs in range slicing
We stop using the property from the class to get us closer to tuple.
--- a/hgext3rd/evolve/stablerange.py Wed Mar 22 18:53:25 2017 +0100
+++ b/hgext3rd/evolve/stablerange.py Wed Mar 22 18:54:45 2017 +0100
@@ -304,8 +304,9 @@
bottom = rangeid._revs[:localindex]
top = stablerange(repo, rangeid[0], globalindex, rangeid._revs[localindex:])
#
+ rangedepth = repo.stablerange.depthrev(repo, rangeid[0])
toprootdepth = repo.stablerange.depthrev(repo, top._revs[0])
- if toprootdepth + self.rangelength(repo, top) == rangeid.depth + 1:
+ if toprootdepth + self.rangelength(repo, top) == rangedepth + 1:
bheads = [bottom[-1]]
else:
bheads = set(bottom)