diff mercurial/bundle2.py @ 51536:780fc16b62e6 stable

bundle2: make the "hgtagsfnodes" part advisory This bundle2 part is about helping the client to warms its cache. There is no reason for it to be mandatory. So we mark it advisory.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 28 Mar 2024 07:12:09 +0000
parents 12c308c55e53
children c4aab3661f25
line wrap: on
line diff
--- a/mercurial/bundle2.py	Mon Mar 25 02:09:15 2024 +0100
+++ b/mercurial/bundle2.py	Thu Mar 28 07:12:09 2024 +0000
@@ -1822,7 +1822,11 @@
             chunks.extend([node, fnode])
 
     if chunks:
-        bundler.newpart(b'hgtagsfnodes', data=b''.join(chunks))
+        bundler.newpart(
+            b'hgtagsfnodes',
+            mandatory=False,
+            data=b''.join(chunks),
+        )
 
 
 def addpartrevbranchcache(repo, bundler, outgoing):