diff mercurial/streamclone.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 a6543983b8f4
children 8c7b04e69894
line wrap: on
line diff
--- a/mercurial/streamclone.py	Sat May 20 01:39:13 2023 +0200
+++ b/mercurial/streamclone.py	Fri May 19 14:49:50 2023 +0200
@@ -758,6 +758,10 @@
     return len(entries), totalfilesize, chunks
 
 
+def generatev3(repo, includes, excludes, includeobsmarkers):
+    return generatev2(repo, includes, excludes, includeobsmarkers)
+
+
 @contextlib.contextmanager
 def nested(*ctxs):
     this = ctxs[0]