Mercurial > public > mercurial-scm > hg-stable
diff mercurial/bundle2.py @ 50552:f2bcb56a1d39
stream-clone: make sure the `stream` capability is set when bundling
This is important to start narrowing protocol option in the next changesets.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 21 May 2023 01:03:19 +0200 |
parents | cd2a2963b982 |
children | 3c0da0fa0eed |
line wrap: on
line diff
--- 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)