--- a/mercurial/streamclone.py Sun Feb 07 15:08:26 2010 +0100
+++ b/mercurial/streamclone.py Sun Feb 07 15:31:53 2010 +0100
@@ -33,11 +33,14 @@
#
# server writes out raw file data.
-def stream_out(repo, untrusted=False):
+def allowed(ui):
+ return ui.configbool('server', 'uncompressed', untrusted=True)
+
+def stream_out(repo):
'''stream out all metadata files in repository.
writes to file-like object, must support write() and optional flush().'''
- if not repo.ui.configbool('server', 'uncompressed', untrusted=untrusted):
+ if not allowed(repo.ui):
raise StreamException(1)
entries = []