changeset 13084:c97ded7b6e79

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.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Wed, 01 Dec 2010 21:46:08 +0100
parents c0290fc6b486
children b4814f1f415c
files mercurial/sshrepo.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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()