diff -r a2950e053614 -r 04e1e6743809 mercurial/hgweb/protocol.py --- 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)