diff -r 31b7e8e7132e -r e23c03dc5cf9 mercurial/repository.py --- 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,