mercurial/bundle2.py
changeset 48653 a3cf460a6b1b
parent 48423 fff5942d445f
child 48875 6000f5b25c9b
child 48990 d9ed7c5e915d
--- 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)