diff -r cd2a2963b982 -r f2bcb56a1d39 mercurial/bundle2.py --- 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)