Mercurial > hg-stable
comparison mercurial/exchange.py @ 50558:58adcabc295f
stream-clone: introduce the notion of an experimental "v3" version
We introduce a new experimental "v3" stream protocol, disabled by default. In
practice the "v3-exp" protocol introduced in this changeset is identical to v2,
but this changeset, lay the groundwork for having a new protocol:
configuration, capability exchange, test coverage, etc.
The actual protocol work will starts in the coming changesets.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 19 May 2023 14:49:50 +0200 |
parents | 4188e75af983 |
children | b361e9da3c3b |
comparison
equal
deleted
inserted
replaced
50557:a6543983b8f4 | 50558:58adcabc295f |
---|---|
2419 info[b'prefercompressed'] = bundler.prefercompressed | 2419 info[b'prefercompressed'] = bundler.prefercompressed |
2420 | 2420 |
2421 return info, bundler.getchunks() | 2421 return info, bundler.getchunks() |
2422 | 2422 |
2423 | 2423 |
2424 @getbundle2partsgenerator(b'stream2') | 2424 @getbundle2partsgenerator(b'stream') |
2425 def _getbundlestream2(bundler, repo, *args, **kwargs): | 2425 def _getbundlestream2(bundler, repo, *args, **kwargs): |
2426 return bundle2.addpartbundlestream2(bundler, repo, **kwargs) | 2426 return bundle2.addpartbundlestream2(bundler, repo, **kwargs) |
2427 | 2427 |
2428 | 2428 |
2429 @getbundle2partsgenerator(b'changegroup') | 2429 @getbundle2partsgenerator(b'changegroup') |