mercurial/sshserver.py
changeset 14614 afccc64eea73
parent 14233 659f34b833b9
child 15017 f4522df38c65
--- a/mercurial/sshserver.py	Tue Jun 07 13:39:09 2011 +0300
+++ b/mercurial/sshserver.py	Wed Jun 08 01:39:20 2011 +0300
@@ -14,11 +14,11 @@
         self.ui = ui
         self.repo = repo
         self.lock = None
-        self.fin = sys.stdin
-        self.fout = sys.stdout
+        self.fin = ui.fin
+        self.fout = ui.fout
 
         hook.redirect(True)
-        sys.stdout = sys.stderr
+        ui.fout = repo.ui.fout = ui.ferr
 
         # Prevent insertion/deletion of CRs
         util.setbinary(self.fin)