stablerange: stop using '.head' in rangelength
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 22 Mar 2017 17:43:36 +0100
changeset 2151 30a949036e1b
parent 2150 0a95e8518941
child 2152 c00fb215cd80
stablerange: stop using '.head' in rangelength 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:18 2017 +0100
+++ b/hgext3rd/evolve/stablerange.py	Wed Mar 22 17:43:36 2017 +0100
@@ -239,7 +239,7 @@
         return revdepth
 
     def rangelength(self, repo, rangeid):
-        headrev, index = rangeid.head, rangeid.index
+        headrev, index = rangeid[0], rangeid.index
         return self.depthrev(repo, headrev) - index
 
     def subranges(self, repo, rangeid):