D4853: streamclone: don't support stream clone unless repo feature present
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Wed Oct 3 17:10:12 UTC 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG51f10e6d66c7: streamclone: don't support stream clone unless repo feature present (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D4853?vs=11631&id=11641
REVISION DETAIL
https://phab.mercurial-scm.org/D4853
AFFECTED FILES
mercurial/streamclone.py
CHANGE DETAILS
diff --git a/mercurial/streamclone.py b/mercurial/streamclone.py
--- a/mercurial/streamclone.py
+++ b/mercurial/streamclone.py
@@ -18,6 +18,7 @@
error,
phases,
pycompat,
+ repository,
store,
util,
)
@@ -178,6 +179,9 @@
def allowservergeneration(repo):
"""Whether streaming clones are allowed from the server."""
+ if repository.REPO_FEATURE_STREAM_CLONE not in repo.features:
+ return False
+
if not repo.ui.configbool('server', 'uncompressed', untrusted=True):
return False
To: indygreg, #hg-reviewers, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list