# HG changeset patch # User Augie Fackler # Date 1606803501 18000 # Node ID fdd54a87621389d7c12ee3cc69dd57c97a37ac19 # Parent 81da6feb5000140adb8972607415855953415233 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 diff -r 81da6feb5000 -r fdd54a876213 mercurial/utils/procutil.py --- 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,