Mercurial > hg-stable
diff mercurial/bundle2.py @ 50567:f4a540c203d7
stream-clone: support streamv3 on the cli [hg bundle]
We add support and test for this. The support is still experimental, so the
various name and identifier will eventually need to be renamed when stream-v3
gets out of experimental.
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Tue, 23 May 2023 01:39:47 +0200 |
parents | 116da6bb7e3b |
children | 037890ecaff5 |
line wrap: on
line diff
--- a/mercurial/bundle2.py Tue May 23 01:28:56 2023 +0200 +++ b/mercurial/bundle2.py Tue May 23 01:39:47 2023 +0200 @@ -1736,6 +1736,8 @@ caps[b'obsmarkers'] = (b'V1',) if opts.get(b'streamv2'): caps[b'stream'] = [b'v2'] + elif opts.get(b'streamv3-exp'): + caps[b'stream'] = [b'v3-exp'] bundle = bundle20(ui, caps) bundle.setcompression(compression, compopts) _addpartsfromopts(ui, repo, bundle, source, outgoing, opts) @@ -1781,6 +1783,9 @@ if opts.get(b'streamv2', False): addpartbundlestream2(bundler, repo, stream=True) + if opts.get(b'streamv3-exp', False): + addpartbundlestream2(bundler, repo, stream=True) + if opts.get(b'tagsfnodescache', True): addparttagsfnodescache(repo, bundler, outgoing)