diff mercurial/sshserver.py @ 6782:b9d6ab187523

streamclone yields chunks instead of accepting a file-like object
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Sun, 29 Jun 2008 14:20:01 +0200
parents 3b6f18851d87
children 8ff321a381d0
line wrap: on
line diff
--- a/mercurial/sshserver.py	Sun Jun 29 11:34:36 2008 +0200
+++ b/mercurial/sshserver.py	Sun Jun 29 14:20:01 2008 +0200
@@ -204,4 +204,6 @@
                 os.unlink(tempname)
 
     def do_stream_out(self):
-        streamclone.stream_out(self.repo, self.fout)
+        for chunk in streamclone.stream_out(self.repo):
+            self.fout.write(chunk)
+        self.fout.flush()