changeset 2168:3012d4ddfb23

stablerange: use rangelength in '_slicepoint' We stop using the building '__len__' this get use closer to be able to use a tuple.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Wed, 22 Mar 2017 18:40:19 +0100
parents d37f0423c072
children 03baabcd1b9e
files hgext3rd/evolve/stablerange.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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