mercurial/sshserver.py
changeset 6925 87abfefafe02
parent 6794 8ff321a381d0
child 7875 553aa0cbeab6
--- a/mercurial/sshserver.py	Tue Jul 22 18:21:37 2008 +0200
+++ b/mercurial/sshserver.py	Fri Aug 15 13:25:57 2008 +0200
@@ -204,4 +204,10 @@
                 os.unlink(tempname)
 
     def do_stream_out(self):
-        streamclone.stream_out(self.repo, self.fout)
+        try:
+            for chunk in streamclone.stream_out(self.repo):
+                self.fout.write(chunk)
+            self.fout.flush()
+        except streamclone.StreamException, inst:
+            self.fout.write(str(inst))
+            self.fout.flush()