Mercurial > public > mercurial-scm > hg-stable
diff mercurial/filelog.py @ 39865:d9b3cc3d5d07
filelog: drop index attribute (API)
The previous commit removed the last consumer of the "index" attribute
on the file storage interface. The index is an extremely low-level
data structure that is revlog specific and isn't appropriate to
expose as part of a generic storage API. There may be a market for
an efficient data structure to obtain metadata on every revision for
a file. But if there is, it should be designed using e.g. named
attributes for lookup instead of a list-like of 8-tuples.
Let's drop the attribute from filelog and remove the attribute from
the file storage interface.
Differential Revision: https://phab.mercurial-scm.org/D4720
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 20 Sep 2018 19:31:07 -0700 |
parents | 32d3ed3023bb |
children | 5a9ab91e0a45 |
line wrap: on
line diff
--- a/mercurial/filelog.py Mon Sep 24 09:38:27 2018 -0700 +++ b/mercurial/filelog.py Thu Sep 20 19:31:07 2018 -0700 @@ -25,8 +25,6 @@ # 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