# HG changeset patch # User Pierre-Yves David # Date 1490204419 -3600 # Node ID 3012d4ddfb23c66ad5f39b4646bd747a4facd716 # Parent d37f0423c072e6d9a504d9e3496385fd4785d608 stablerange: use rangelength in '_slicepoint' We stop using the building '__len__' this get use closer to be able to use a tuple. diff -r d37f0423c072 -r 3012d4ddfb23 hgext3rd/evolve/stablerange.py --- 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