changeset 51783:acc2d0f08fc9

manifest: use the `read_delta_parents` method Let's use the more accurate API.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 01 Aug 2024 13:15:10 +0200
parents 4704c4c79f21
children 9844bab33aee
files mercurial/changegroup.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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'/'