mercurial/bundle2.py
branchstable
changeset 48796 c00d3ce4e94b
parent 48653 a3cf460a6b1b
child 48875 6000f5b25c9b
child 48990 d9ed7c5e915d
--- a/mercurial/bundle2.py	Fri Feb 18 12:55:39 2022 +0100
+++ b/mercurial/bundle2.py	Fri Feb 18 14:27:43 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)
@@ -2419,7 +2420,7 @@
             op.records.add(b'bookmarks', record)
     else:
         raise error.ProgrammingError(
-            b'unkown bookmark mode: %s' % bookmarksmode
+            b'unknown bookmark mode: %s' % bookmarksmode
         )