diff mercurial/hgweb/protocol.py @ 10377:04e1e6743809

streamclone: allow uncompressed clones by default
author Matt Mackall <mpm@selenic.com>
date Sun, 07 Feb 2010 15:31:53 +0100
parents 25e572394f5c
children ed87b6c60e0b
line wrap: on
line diff
--- a/mercurial/hgweb/protocol.py	Sun Feb 07 15:08:26 2010 +0100
+++ b/mercurial/hgweb/protocol.py	Sun Feb 07 15:31:53 2010 +0100
@@ -111,7 +111,7 @@
 
 def capabilities(repo, req):
     caps = copy.copy(basecaps)
-    if repo.ui.configbool('server', 'uncompressed', untrusted=True):
+    if streamclone.allowed(repo.ui):
         caps.append('stream=%d' % repo.changelog.version)
     if changegroupmod.bundlepriority:
         caps.append('unbundle=%s' % ','.join(changegroupmod.bundlepriority))
@@ -202,7 +202,7 @@
 def stream_out(repo, req):
     req.respond(HTTP_OK, HGTYPE)
     try:
-        for chunk in streamclone.stream_out(repo, untrusted=True):
+        for chunk in streamclone.stream_out(repo):
             yield chunk
     except streamclone.StreamException, inst:
         yield str(inst)