procutil: use rapply(tonativestr, ...) to preserve lists when they come in
This was broken when script was a list instead of a string. I caught this
with an internal extension at Google, and I'm not really sure why it wasn't
caught in any kind of CI.
Differential Revision: https://phab.mercurial-scm.org/D9471
--- a/mercurial/utils/procutil.py Tue Nov 03 11:24:21 2020 +0900
+++ b/mercurial/utils/procutil.py Tue Dec 01 01:18:21 2020 -0500
@@ -640,7 +640,7 @@
# we can't use close_fds *and* redirect stdin. I'm not sure that we
# need to because the detached process has no console connection.
p = subprocess.Popen(
- tonativestr(script),
+ pycompat.rapply(tonativestr, script),
shell=shell,
env=tonativeenv(env),
close_fds=True,