mercurial/streamclone.py
changeset 4834 439e2f2fde42
parent 4134 9dc64c8414ca
child 4915 97b734fb9c6f
--- a/mercurial/streamclone.py	Wed Jul 11 19:56:16 2007 -0300
+++ b/mercurial/streamclone.py	Sat May 12 00:41:30 2007 +0200
@@ -56,11 +56,11 @@
 #
 #   server writes out raw file data.
 
-def stream_out(repo, fileobj):
+def stream_out(repo, fileobj, untrusted=False):
     '''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'):
+    if not repo.ui.configbool('server', 'uncompressed', untrusted=untrusted):
         fileobj.write('1\n')
         return