# HG changeset patch # User Pierre-Yves David # Date 2024-08-06 00:13:17 # Node ID e4954fd3d1c30240393726576753aa9567593987 # Parent bcb825bf0c5e50772d9882cbc304a26e5f3cd4cd manifest: use read_delta_new_entries in changegroup validate This new method have a well defined semantic and can be adjusted by narrow as it needs. This should prevent some unwanted filelog access when running validate on a server using narrow profile to restrict access. diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py --- a/mercurial/changegroup.py +++ b/mercurial/changegroup.py @@ -611,7 +611,7 @@ class cg1unpacker: # validate incoming csets have their manifests for cset in range(clstart, clend): mfnode = cl.changelogrevision(cset).manifest - mfest = ml[mfnode].readdelta() + mfest = ml[mfnode].read_delta_new_entries() # store file nodes we must see for f, n in mfest.items(): needfiles.setdefault(f, set()).add(n)