Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
13083:c0290fc6b486 | 13084:c97ded7b6e79 |
---|---|
89 def readerr(self): | 89 def readerr(self): |
90 while 1: | 90 while 1: |
91 size = util.fstat(self.pipee).st_size | 91 size = util.fstat(self.pipee).st_size |
92 if size == 0: | 92 if size == 0: |
93 break | 93 break |
94 l = self.pipee.readline() | 94 s = self.pipee.read(size) |
95 if not l: | 95 if not s: |
96 break | 96 break |
97 self.ui.status(_("remote: "), l) | 97 for l in s.splitlines(): |
98 self.ui.status(_("remote: "), l, '\n') | |
98 | 99 |
99 def _abort(self, exception): | 100 def _abort(self, exception): |
100 self.cleanup() | 101 self.cleanup() |
101 raise exception | 102 raise exception |
102 | 103 |