comparison 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
comparison
equal deleted inserted replaced
39859:32d3ed3023bb 39860:d9b3cc3d5d07
483 483
484 * A mapping between revision numbers and nodes. 484 * A mapping between revision numbers and nodes.
485 * DAG data (storing and querying the relationship between nodes). 485 * DAG data (storing and querying the relationship between nodes).
486 * Metadata to facilitate storage. 486 * Metadata to facilitate storage.
487 """ 487 """
488 index = interfaceutil.Attribute(
489 """An ``ifilerevisionssequence`` instance.""")
490
491 def __len__(): 488 def __len__():
492 """Obtain the number of revisions stored for this file.""" 489 """Obtain the number of revisions stored for this file."""
493 490
494 def __iter__(): 491 def __iter__():
495 """Iterate over revision numbers for this file.""" 492 """Iterate over revision numbers for this file."""