# HG changeset patch # User Augie Fackler # Date 2020-12-01 06:18:21 # 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 --git a/mercurial/utils/procutil.py b/mercurial/utils/procutil.py --- a/mercurial/utils/procutil.py +++ b/mercurial/utils/procutil.py @@ -640,7 +640,7 @@ if pycompat.iswindows: # 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,