# HG changeset patch # User Pierre-Yves David # Date 1490201229 -3600 # Node ID 89ce52e855ed1c2b0d9e2831c5a86e3a86229f97 # Parent f02f63c264243834ec53e36aa3ba6d8d6f53f157 stablerange: make sure nobody use '.head' anymore We rename the attribute for good measure. diff -r f02f63c26424 -r 89ce52e855ed hgext3rd/evolve/stablerange.py --- a/hgext3rd/evolve/stablerange.py Wed Mar 22 17:45:39 2017 +0100 +++ b/hgext3rd/evolve/stablerange.py Wed Mar 22 17:47:09 2017 +0100 @@ -340,7 +340,7 @@ def __init__(self, repo, head, index, revs=None): self._repo = repo.unfiltered() - self.head = head + self._head = head self.index = index if revs is not None: assert len(revs) == len(self) @@ -362,7 +362,7 @@ def __getitem__(self, idx): """small helper function to prepare for the migration to tuple""" if idx == 0: - return self.head + return self._head elif idx == 1: return self.index else: