changeset 5303:a76c61679b71

convert: call popen2 in binary mode, with a command string.
author Patrick Mezard <pmezard@gmail.com>
date Fri, 14 Sep 2007 22:17:53 +0200
parents 961876838de0
children b85f7cc133cc
files hgext/convert/cvs.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/cvs.py	Fri Sep 14 22:17:53 2007 +0200
+++ b/hgext/convert/cvs.py	Fri Sep 14 22:17:53 2007 +0200
@@ -163,7 +163,10 @@
                 else:
                     cmd = [rsh, host] + cmd
 
-            self.writep, self.readp = os.popen2(cmd)
+            # popen2 does not support argument lists under Windows
+            cmd = [util.shellquote(arg) for arg in cmd]
+            cmd = util.quotecommand(' '.join(cmd))
+            self.writep, self.readp = os.popen2(cmd, 'b')
 
         self.realroot = root