diff mercurial/sshpeer.py @ 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 234e4c24b980
children 41c03b7592ed e3f30068d2eb
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")))