comparison 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
comparison
equal deleted inserted replaced
51514:4ee50d98d35c 51536:780fc16b62e6
1820 fnode = cache.getfnode(node, computemissing=False) 1820 fnode = cache.getfnode(node, computemissing=False)
1821 if fnode: 1821 if fnode:
1822 chunks.extend([node, fnode]) 1822 chunks.extend([node, fnode])
1823 1823
1824 if chunks: 1824 if chunks:
1825 bundler.newpart(b'hgtagsfnodes', data=b''.join(chunks)) 1825 bundler.newpart(
1826 b'hgtagsfnodes',
1827 mandatory=False,
1828 data=b''.join(chunks),
1829 )
1826 1830
1827 1831
1828 def addpartrevbranchcache(repo, bundler, outgoing): 1832 def addpartrevbranchcache(repo, bundler, outgoing):
1829 # we include the rev branch cache for the bundle changeset 1833 # we include the rev branch cache for the bundle changeset
1830 # (as an optional parts) 1834 # (as an optional parts)