diff mercurial/interfaces/repository.py @ 44663:948fac24bc39

manifest: introduce new exception to signal unavailability of fastdelta() I've spent some time reflecting on this, and I think this is the best we can do in this API contract for now. This opens the door to adding treemanifest's implementation to the list of implementers of imanifestdict. Differential Revision: https://phab.mercurial-scm.org/D8365
author Augie Fackler <augie@google.com>
date Thu, 02 Apr 2020 13:04:41 -0400
parents 0bf3b5e80d30
children 97ebdb192b00
line wrap: on
line diff
--- a/mercurial/interfaces/repository.py	Sat Mar 07 00:30:33 2020 +0100
+++ b/mercurial/interfaces/repository.py	Thu Apr 02 13:04:41 2020 -0400
@@ -1052,6 +1052,9 @@
 
         Returns a 2-tuple containing ``bytearray(self.text())`` and the
         delta between ``base`` and this manifest.
+
+        If this manifest implementation can't support ``fastdelta()``,
+        raise ``mercurial.manifest.FastdeltaUnavailable``.
         """