Mercurial > public > mercurial-scm > hg
diff mercurial/sshrepo.py @ 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 | c327bfa5e831 |
children | da0ddd62b9d8 |
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()