mercurial/bundle2.py
changeset 50518 f2bcb56a1d39
parent 50517 cd2a2963b982
child 50519 3c0da0fa0eed
--- a/mercurial/bundle2.py	Sun May 21 00:00:29 2023 +0200
+++ b/mercurial/bundle2.py	Sun May 21 01:03:19 2023 +0200
@@ -1730,6 +1730,8 @@
     caps = {}
     if opts.get(b'obsolescence', False):
         caps[b'obsmarkers'] = (b'V1',)
+    if opts.get(b'streamv2'):
+        caps[b'stream'] = [b'v2']
     bundle = bundle20(ui, caps)
     bundle.setcompression(compression, compopts)
     _addpartsfromopts(ui, repo, bundle, source, outgoing, opts)