comparison 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
comparison
equal deleted inserted replaced
39830:874712506b07 39831:c31ce080eb75
3072 # shared state from interfering with server operation. 3072 # shared state from interfering with server operation.
3073 args = procutil.hgcmd() + [ 3073 args = procutil.hgcmd() + [
3074 '-R', repo.root, 3074 '-R', repo.root,
3075 'debugserve', '--sshstdio', 3075 'debugserve', '--sshstdio',
3076 ] 3076 ]
3077 proc = subprocess.Popen(args, stdin=subprocess.PIPE, 3077 proc = subprocess.Popen(pycompat.rapply(procutil.tonativestr, args),
3078 stdin=subprocess.PIPE,
3078 stdout=subprocess.PIPE, stderr=subprocess.PIPE, 3079 stdout=subprocess.PIPE, stderr=subprocess.PIPE,
3079 bufsize=0) 3080 bufsize=0)
3080 3081
3081 stdin = proc.stdin 3082 stdin = proc.stdin
3082 stdout = proc.stdout 3083 stdout = proc.stdout