Mercurial > hg
diff mercurial/changegroup.py @ 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 | ca7bde5dbafb |
children | e4954fd3d1c3 |
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'/'