--- a/mercurial/bundle2.py Mon Jan 24 12:44:20 2022 +0100
+++ b/mercurial/bundle2.py Tue Jan 18 00:19:04 2022 +0100
@@ -1886,7 +1886,8 @@
filecount, bytecount, it = streamclone.generatev2(
repo, includepats, excludepats, includeobsmarkers
)
- requirements = _formatrequirementsspec(repo.requirements)
+ requirements = streamclone.streamed_requirements(repo)
+ requirements = _formatrequirementsspec(requirements)
part = bundler.newpart(b'stream2', data=it)
part.addparam(b'bytecount', b'%d' % bytecount, mandatory=True)
part.addparam(b'filecount', b'%d' % filecount, mandatory=True)