sshpeer: forward stdout of remote "hg init" to appropriate output channel
authorYuya Nishihara <yuya@tcha.org>
Tue, 14 Oct 2014 21:59:39 +0900
changeset 22935 ee297602a208
parent 22934 8a096d4d0862
child 22936 dae236906fb2
sshpeer: forward stdout of remote "hg init" to appropriate output channel Otherwise, commandserver channel could be corrupted.
mercurial/sshpeer.py
--- a/mercurial/sshpeer.py	Wed Sep 03 16:34:29 2014 -0400
+++ b/mercurial/sshpeer.py	Tue Oct 14 21:59:39 2014 +0900
@@ -52,7 +52,7 @@
                 util.shellquote("%s init %s" %
                     (_serverquote(remotecmd), _serverquote(self.path))))
             ui.debug('running %s\n' % cmd)
-            res = util.system(cmd)
+            res = util.system(cmd, out=ui.fout)
             if res != 0:
                 self._abort(error.RepoError(_("could not create remote repo")))