Mercurial > public > mercurial-scm > hg
comparison mercurial/streamclone.py @ 50521: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 | a6543983b8f4 |
children | 8c7b04e69894 |
comparison
equal
deleted
inserted
replaced
50520:a6543983b8f4 | 50521:58adcabc295f |
---|---|
756 _test_sync_point_walk_2(repo) | 756 _test_sync_point_walk_2(repo) |
757 | 757 |
758 return len(entries), totalfilesize, chunks | 758 return len(entries), totalfilesize, chunks |
759 | 759 |
760 | 760 |
761 def generatev3(repo, includes, excludes, includeobsmarkers): | |
762 return generatev2(repo, includes, excludes, includeobsmarkers) | |
763 | |
764 | |
761 @contextlib.contextmanager | 765 @contextlib.contextmanager |
762 def nested(*ctxs): | 766 def nested(*ctxs): |
763 this = ctxs[0] | 767 this = ctxs[0] |
764 rest = ctxs[1:] | 768 rest = ctxs[1:] |
765 with this: | 769 with this: |