stablerange: stop using '.head' in '_slicepoint'
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 22 Mar 2017 17:44:10 +0100
changeset 2152 c00fb215cd80
parent 2151 30a949036e1b
child 2153 7c5149a129d2
stablerange: stop using '.head' in '_slicepoint' We now access '[0]' as we'll do with the future tuple.
hgext3rd/evolve/stablerange.py
--- a/hgext3rd/evolve/stablerange.py	Wed Mar 22 17:43:36 2017 +0100
+++ b/hgext3rd/evolve/stablerange.py	Wed Mar 22 17:44:10 2017 +0100
@@ -255,7 +255,7 @@
         return value
 
     def _slicepoint(self, repo, rangeid):
-        rangedepth = self.depthrev(repo, rangeid.head)
+        rangedepth = self.depthrev(repo, rangeid[0])
         step = _hlp2(rangedepth)
         standard_start = 0
         while standard_start < rangeid.index and 0 < step: