diff --git a/mercurial/filelog.py b/mercurial/filelog.py --- a/mercurial/filelog.py +++ b/mercurial/filelog.py @@ -25,8 +25,6 @@ class filelog(object): # Full name of the user visible file, relative to the repository root. # Used by LFS. self._revlog.filename = path - # Used by repo upgrade. - self.index = self._revlog.index # Used by changegroup generation. self._generaldelta = self._revlog._generaldelta diff --git a/mercurial/repository.py b/mercurial/repository.py --- a/mercurial/repository.py +++ b/mercurial/repository.py @@ -485,9 +485,6 @@ class ifileindex(interfaceutil.Interface * DAG data (storing and querying the relationship between nodes). * Metadata to facilitate storage. """ - index = interfaceutil.Attribute( - """An ``ifilerevisionssequence`` instance.""") - def __len__(): """Obtain the number of revisions stored for this file.""" diff --git a/tests/simplestorerepo.py b/tests/simplestorerepo.py --- a/tests/simplestorerepo.py +++ b/tests/simplestorerepo.py @@ -103,7 +103,7 @@ class filestorage(object): self._indexdata = indexdata or [] self._indexbynode = {} self._indexbyrev = {} - self.index = [] + self._index = [] self._refreshindex() # This is used by changegroup code :/ @@ -112,7 +112,7 @@ class filestorage(object): def _refreshindex(self): self._indexbynode.clear() self._indexbyrev.clear() - self.index = [] + self._index = [] for i, entry in enumerate(self._indexdata): self._indexbynode[entry[b'node']] = entry @@ -138,10 +138,10 @@ class filestorage(object): p1rev, p2rev = self.parentrevs(self.rev(entry[b'node'])) # start, length, rawsize, chainbase, linkrev, p1, p2, node - self.index.append((0, 0, 0, -1, entry[b'linkrev'], p1rev, p2rev, - entry[b'node'])) + self._index.append((0, 0, 0, -1, entry[b'linkrev'], p1rev, p2rev, + entry[b'node'])) - self.index.append((0, 0, 0, -1, -1, -1, -1, nullid)) + self._index.append((0, 0, 0, -1, -1, -1, -1, nullid)) def __len__(self): return len(self._indexdata)