# HG changeset patch # User Pierre-Yves David # Date 1490201016 -3600 # Node ID 30a949036e1b621e06970fa4506bcd97d4131d1d # Parent 0a95e8518941b2e46c1d8ba75a39ac43d3ea204d stablerange: stop using '.head' in rangelength We now access '[0]' as we'll do with the future tuple. diff -r 0a95e8518941 -r 30a949036e1b 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):