changeset 1330:0fcde73dc3ca

Give ssh a better chance of working on Windows. Switch the type of quotes used for the remote command. Open the pipe in binary mode.
author Bryan O'Sullivan <bos@serpentine.com>
date Fri, 23 Sep 2005 10:30:41 -0700
parents 8f06817bf266
children cfae1ed2d61f
files mercurial/sshrepo.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/sshrepo.py	Fri Sep 23 10:28:55 2005 -0700
+++ b/mercurial/sshrepo.py	Fri Sep 23 10:30:41 2005 -0700
@@ -29,10 +29,10 @@
 
         sshcmd = self.ui.config("ui", "ssh", "ssh")
         remotecmd = self.ui.config("ui", "remotecmd", "hg")
-        cmd = "%s %s '%s -R %s serve --stdio'"
+        cmd = '%s %s "%s -R %s serve --stdio"'
         cmd = cmd % (sshcmd, args, remotecmd, self.path)
 
-        self.pipeo, self.pipei, self.pipee = os.popen3(cmd)
+        self.pipeo, self.pipei, self.pipee = os.popen3(cmd, 'b')
 
     def readerr(self):
         while 1: