mercurial/streamclone.py
changeset 40028 51f10e6d66c7
parent 39850 d89d5bc06eaa
child 40338 af62936c2508
--- a/mercurial/streamclone.py	Tue Oct 02 12:40:39 2018 -0700
+++ b/mercurial/streamclone.py	Tue Oct 02 12:43:54 2018 -0700
@@ -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