##// END OF EJS Templates
ssh: skip noise generated by remote shell...
Matt Mackall -
r2028:1f1fc418 default
parent child Browse files
Show More
@@ -36,6 +36,16 b' class sshrepository(remoterepository):'
36 ui.note('running %s\n' % cmd)
36 ui.note('running %s\n' % cmd)
37 self.pipeo, self.pipei, self.pipee = os.popen3(cmd, 'b')
37 self.pipeo, self.pipei, self.pipee = os.popen3(cmd, 'b')
38
38
39 # skip any noise generated by remote shell
40 r = self.do_cmd("between", pairs=("%s-%s" % ("0"*40, "0"*40)))
41 l1 = ""
42 while 1:
43 l2 = r.readline()
44 self.readerr()
45 if l1 == "1\n" and l2 == "\n":
46 break
47 l1 = l2
48
39 def readerr(self):
49 def readerr(self):
40 while 1:
50 while 1:
41 size = os.fstat(self.pipee.fileno())[stat.ST_SIZE]
51 size = os.fstat(self.pipee.fileno())[stat.ST_SIZE]
General Comments 0
You need to be logged in to leave comments. Login now