changeset 22935:ee297602a208

sshpeer: forward stdout of remote "hg init" to appropriate output channel Otherwise, commandserver channel could be corrupted.
author Yuya Nishihara <yuya@tcha.org>
date Tue, 14 Oct 2014 21:59:39 +0900
parents 8a096d4d0862
children dae236906fb2
files mercurial/sshpeer.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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")))