diff mercurial/repository.py @ 39860: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 9534fe1e5d28
children 5a9ab91e0a45
line wrap: on
line diff
--- a/mercurial/repository.py	Mon Sep 24 09:38:27 2018 -0700
+++ b/mercurial/repository.py	Thu Sep 20 19:31:07 2018 -0700
@@ -485,9 +485,6 @@
     * 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."""