sshrepo: don't use readline() on the stderr pipe
authorDan Villiom Podlaski Christiansen <danchr@gmail.com>
Wed, 01 Dec 2010 21:46:08 +0100
changeset 13084 c97ded7b6e79
parent 13083 c0290fc6b486
child 13085 b4814f1f415c
sshrepo: don't use readline() on the stderr pipe For some reason, the stat/readline dance suppressed lines following the first in PyPy 1.4.
mercurial/sshrepo.py
--- a/mercurial/sshrepo.py	Wed Dec 01 21:46:08 2010 +0100
+++ b/mercurial/sshrepo.py	Wed Dec 01 21:46:08 2010 +0100
@@ -91,10 +91,11 @@
             size = util.fstat(self.pipee).st_size
             if size == 0:
                 break
-            l = self.pipee.readline()
-            if not l:
+            s = self.pipee.read(size)
+            if not s:
                 break
-            self.ui.status(_("remote: "), l)
+            for l in s.splitlines():
+                self.ui.status(_("remote: "), l, '\n')
 
     def _abort(self, exception):
         self.cleanup()