manifest: use the `read_delta_parents` method
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 01 Aug 2024 13:15:10 +0200
changeset 51783 acc2d0f08fc9
parent 51782 4704c4c79f21
child 51784 9844bab33aee
manifest: use the `read_delta_parents` method Let's use the more accurate API.
mercurial/changegroup.py
--- a/mercurial/changegroup.py	Thu Aug 01 13:12:49 2024 +0200
+++ b/mercurial/changegroup.py	Thu Aug 01 13:15:10 2024 +0200
@@ -1830,7 +1830,8 @@
                 treemanifests to send.
                 """
                 clnode = nodes[x]
-                mdata = mfl.get(tree, x).readfast(shallow=True)
+                mctx = mfl.get(tree, x)
+                mdata = mctx.read_delta_parents(shallow=True, exact=False)
                 for p, n, fl in mdata.iterentries():
                     if fl == b't':  # subdirectory manifest
                         subtree = tree + p + b'/'