Mercurial > public > mercurial-scm > hg-stable
diff mercurial/repository.py @ 39871:e23c03dc5cf9
revlog: drop emitrevisiondeltas() and associated functionality (API)
emitrevisions() is the future!
Differential Revision: https://phab.mercurial-scm.org/D4726
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 24 Sep 2018 09:59:19 -0700 |
parents | 5a9ab91e0a45 |
children | 4b816a83e17e |
line wrap: on
line diff
--- a/mercurial/repository.py Fri Sep 21 18:47:04 2018 -0700 +++ b/mercurial/repository.py Mon Sep 24 09:59:19 2018 -0700 @@ -391,37 +391,6 @@ Stored in the bdiff delta format. """) -class irevisiondeltarequest(interfaceutil.Interface): - """Represents a request to generate an ``irevisiondelta``.""" - - node = interfaceutil.Attribute( - """20 byte node of revision being requested.""") - - p1node = interfaceutil.Attribute( - """20 byte node of 1st parent of revision.""") - - p2node = interfaceutil.Attribute( - """20 byte node of 2nd parent of revision.""") - - linknode = interfaceutil.Attribute( - """20 byte node to store in ``linknode`` attribute.""") - - basenode = interfaceutil.Attribute( - """Base revision that delta should be generated against. - - If ``nullid``, the derived ``irevisiondelta`` should have its - ``revision`` field populated and no delta should be generated. - - If ``None``, the delta may be generated against any revision that - is an ancestor of this revision. Or a full revision may be used. - - If any other value, the delta should be produced against that - revision. - """) - - ellipsis = interfaceutil.Attribute( - """Boolean on whether the ellipsis flag should be set.""") - class ifilerevisionssequence(interfaceutil.Interface): """Contains index data for all revisions of a file. @@ -630,30 +599,6 @@ revision data. """ - def emitrevisiondeltas(requests): - """Produce ``irevisiondelta`` from ``irevisiondeltarequest``s. - - Given an iterable of objects conforming to the ``irevisiondeltarequest`` - interface, emits objects conforming to the ``irevisiondelta`` - interface. - - This method is a generator. - - ``irevisiondelta`` should be emitted in the same order of - ``irevisiondeltarequest`` that was passed in. - - The emitted objects MUST conform by the results of - ``irevisiondeltarequest``. Namely, they must respect any requests - for building a delta from a specific ``basenode`` if defined. - - When sending deltas, implementations must take into account whether - the client has the base delta before encoding a delta against that - revision. A revision encountered previously in ``requests`` is - always a suitable base revision. An example of a bad delta is a delta - against a non-ancestor revision. Another example of a bad delta is a - delta against a censored revision. - """ - def emitrevisions(nodes, nodesorder=None, revisiondata=False, @@ -1174,12 +1119,6 @@ Returns True if the fulltext is different from what is stored. """ - def emitrevisiondeltas(requests): - """Produce ``irevisiondelta`` from ``irevisiondeltarequest``s. - - See the documentation for ``ifiledata`` for more. - """ - def emitrevisions(nodes, nodesorder=None, revisiondata=False,