diff mercurial/bundle2.py @ 50532:116da6bb7e3b

stream-clone: add the `-exp` prefix to the bundle part We forget to do so in 58adcabc295f, however this is important to prevent "current" client to send incompatible version to future client.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 23 May 2023 01:28:56 +0200
parents 58adcabc295f
children f4a540c203d7
line wrap: on
line diff
--- a/mercurial/bundle2.py	Mon Feb 21 14:44:22 2022 +0100
+++ b/mercurial/bundle2.py	Tue May 23 01:28:56 2023 +0200
@@ -1952,7 +1952,7 @@
         )
         requirements = streamclone.streamed_requirements(repo)
         requirements = _formatrequirementsspec(requirements)
-        part = bundler.newpart(b'stream3', data=it)
+        part = bundler.newpart(b'stream3-exp', data=it)
         part.addparam(b'bytecount', b'%d' % bytecount, mandatory=True)
         part.addparam(b'filecount', b'%d' % filecount, mandatory=True)
         part.addparam(b'requirements', requirements, mandatory=True)
@@ -2611,7 +2611,7 @@
     streamclone.applybundlev2(repo, part, filecount, bytecount, requirements)
 
 
-@parthandler(b'stream3', (b'requirements', b'filecount', b'bytecount'))
+@parthandler(b'stream3-exp', (b'requirements', b'filecount', b'bytecount'))
 def handlestreamv3bundle(op, part):
     return handlestreamv2bundle(op, part)