mercurial/util.py
changeset 13189 f5be619663f9
parent 13129 873c032c81b5
parent 13188 6c9345f9edca
child 13197 684a977c2ae0
--- a/mercurial/util.py	Wed Dec 22 13:16:03 2010 -0600
+++ b/mercurial/util.py	Thu Dec 23 13:23:20 2010 -0600
@@ -391,9 +391,7 @@
             return '1'
         return str(val)
     origcmd = cmd
-    if os.name == 'nt' and sys.version_info < (2, 7, 1):
-        # Python versions since 2.7.1 do this extra quoting themselves
-        cmd = '"%s"' % cmd
+    cmd = quotecommand(cmd)
     env = dict(os.environ)
     env.update((k, py2shell(v)) for k, v in environ.iteritems())
     env['HG'] = hgexecutable()