--- a/mercurial/utils/procutil.py Sat Jun 16 23:26:40 2018 +0900
+++ b/mercurial/utils/procutil.py Thu Jun 28 22:23:08 2018 -0400
@@ -317,6 +317,13 @@
env['HG'] = hgexecutable()
return env
+if pycompat.iswindows:
+ def shelltonative(cmd, env):
+ return platform.shelltocmdexe(cmd, shellenviron(env))
+else:
+ def shelltonative(cmd, env):
+ return cmd
+
def system(cmd, environ=None, cwd=None, out=None):
'''enhanced shell command execution.
run with environment maybe modified, maybe in different dir.