sshpeer: use the doublepipe object for the server to client channel
This restores real-time output from ssh server while waiting for protocol data
sent by the server.
--- a/mercurial/sshpeer.py Fri May 22 10:48:11 2015 -0500
+++ b/mercurial/sshpeer.py Wed May 20 11:41:48 2015 -0500
@@ -160,6 +160,7 @@
self.pipeo, self.pipei, self.pipee, self.subprocess = sub
self.pipei = util.bufferedinputpipe(self.pipei)
+ self.pipei = doublepipe(self.ui, self.pipei, self.pipee)
# skip any noise generated by remote shell
self._callstream("hello")
--- a/tests/test-ssh.t Fri May 22 10:48:11 2015 -0500
+++ b/tests/test-ssh.t Wed May 20 11:41:48 2015 -0500
@@ -396,8 +396,8 @@
$ hg push --ssh "sh ../ssh.sh"
pushing to ssh://user@dummy/*/remote (glob)
searching for changes
+ remote: Permission denied
abort: pretxnopen.hg-ssh hook failed
- remote: Permission denied
[255]
$ cd ..