Mercurial > public > mercurial-scm > hg-stable
diff mercurial/debugcommands.py @ 39831:c31ce080eb75
py3: convert arguments, cwd and env to native strings when spawning subprocess
This keeps Windows happy.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 23 Sep 2018 00:47:04 -0400 |
parents | 24e493ec2229 |
children | 9c8eff5cfa1b |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Fri Sep 21 21:14:27 2018 -0400 +++ b/mercurial/debugcommands.py Sun Sep 23 00:47:04 2018 -0400 @@ -3074,7 +3074,8 @@ '-R', repo.root, 'debugserve', '--sshstdio', ] - proc = subprocess.Popen(args, stdin=subprocess.PIPE, + proc = subprocess.Popen(pycompat.rapply(procutil.tonativestr, args), + stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, bufsize=0)