changeset 2028 | 1f1fc418a96c |
parent 2019 | ced2d3620f95 |
child 2040 | cd7711268774 |
--- a/mercurial/sshrepo.py +++ b/mercurial/sshrepo.py @@ -36,6 +36,16 @@ class sshrepository(remoterepository): ui.note('running %s\n' % cmd) self.pipeo, self.pipei, self.pipee = os.popen3(cmd, 'b') + # skip any noise generated by remote shell + r = self.do_cmd("between", pairs=("%s-%s" % ("0"*40, "0"*40))) + l1 = "" + while 1: + l2 = r.readline() + self.readerr() + if l1 == "1\n" and l2 == "\n": + break + l1 = l2 + def readerr(self): while 1: size = os.fstat(self.pipee.fileno())[stat.ST_SIZE]