68 cmd = '%s %s %s' % (sshcmd, args, |
68 cmd = '%s %s %s' % (sshcmd, args, |
69 util.shellquote("%s -R %s serve --stdio" % |
69 util.shellquote("%s -R %s serve --stdio" % |
70 (_serverquote(remotecmd), _serverquote(self.path)))) |
70 (_serverquote(remotecmd), _serverquote(self.path)))) |
71 ui.note(_('running %s\n') % cmd) |
71 ui.note(_('running %s\n') % cmd) |
72 cmd = util.quotecommand(cmd) |
72 cmd = util.quotecommand(cmd) |
73 self.pipeo, self.pipei, self.pipee = util.popen3(cmd) |
73 |
|
74 # while self.subprocess isn't used, having it allows the subprocess to |
|
75 # to clean up correctly later |
|
76 self.pipeo, self.pipei, self.pipee, self.subprocess = util.popen4(cmd) |
74 |
77 |
75 # skip any noise generated by remote shell |
78 # skip any noise generated by remote shell |
76 self._callstream("hello") |
79 self._callstream("hello") |
77 r = self._callstream("between", pairs=("%s-%s" % ("0"*40, "0"*40))) |
80 r = self._callstream("between", pairs=("%s-%s" % ("0"*40, "0"*40))) |
78 lines = ["", "dummy"] |
81 lines = ["", "dummy"] |