stablerange: use rangelength in '_slicepoint'
We stop using the building '__len__' this get use closer to be able to use a
tuple.
--- a/hgext3rd/evolve/stablerange.py Wed Mar 22 18:39:47 2017 +0100
+++ b/hgext3rd/evolve/stablerange.py Wed Mar 22 18:40:19 2017 +0100
@@ -264,7 +264,7 @@
standard_start += step
step //= 2
if rangeid[1] == standard_start:
- slicesize = _hlp2(len(rangeid))
+ slicesize = _hlp2(self.rangelength(repo, rangeid))
slicepoint = rangeid[1] + slicesize
else:
assert standard_start < rangedepth