diff mercurial/manifest.py @ 51788:9af1acc1ffab

manifest: deprecated readdelta and readfast These method should not have any user left.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 05 Aug 2024 20:08:23 +0200
parents bcb825bf0c5e
children 62b25293b620
line wrap: on
line diff
--- a/mercurial/manifest.py	Tue Aug 06 02:09:33 2024 +0200
+++ b/mercurial/manifest.py	Mon Aug 05 20:08:23 2024 +0200
@@ -2247,6 +2247,11 @@
 
         If `shallow` is True, nothing changes since this is a flat manifest.
         """
+        util.nouideprecwarn(
+            b'"readfast" is deprecated use "read_any_fast_delta" or "read_delta_parents"',
+            b"6.9",
+            stacklevel=2,
+        )
         store = self._storage()
         r = store.rev(self._node)
         deltaparent = store.deltaparent(r)
@@ -2261,6 +2266,11 @@
 
         Changing the value of `shallow` has no effect on flat manifests.
         """
+        util.nouideprecwarn(
+            b'"readfast" is deprecated use "read_any_fast_delta" or "read_delta_new_entries"',
+            b"6.9",
+            stacklevel=2,
+        )
         store = self._storage()
         r = store.rev(self._node)
         d = mdiff.patchtext(store.revdiff(store.deltaparent(r), r))
@@ -2454,6 +2464,11 @@
 
     def readdelta(self, shallow: bool = False) -> AnyManifestDict:
         """see `imanifestrevisionstored` documentation"""
+        util.nouideprecwarn(
+            b'"readdelta" is deprecated use "read_any_fast_delta" or "read_delta_new_entries"',
+            b"6.9",
+            stacklevel=2,
+        )
         store = self._storage()
         if shallow:
             r = store.rev(self._node)
@@ -2619,6 +2634,11 @@
         If `shallow` is True, it only returns the entries from this manifest,
         and not any submanifests.
         """
+        util.nouideprecwarn(
+            b'"readdelta" is deprecated use "read_any_fast_delta" or "read_delta_parents"',
+            b"6.9",
+            stacklevel=2,
+        )
         store = self._storage()
         r = store.rev(self._node)
         deltaparent = store.deltaparent(r)