D7541: mail: use procutil.shellsplit instead of bytes.split to parse command

jcristau (Julien Cristau) phabricator at mercurial-scm.org
Tue Dec 10 10:46:14 EST 2019


Closed by commit rHG8f26dd09aa78: mail: use procutil.shellsplit instead of bytes.split to parse command (authored by jcristau).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7541?vs=18419&id=18576

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7541/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7541

AFFECTED FILES
  mercurial/mail.py

CHANGE DETAILS

diff --git a/mercurial/mail.py b/mercurial/mail.py
--- a/mercurial/mail.py
+++ b/mercurial/mail.py
@@ -197,7 +197,7 @@
         raise error.Abort(
             b'%s %s'
             % (
-                os.path.basename(program.split(None, 1)[0]),
+                os.path.basename(procutil.shellsplit(program)[0]),
                 procutil.explainexit(ret),
             )
         )



To: jcristau, #hg-reviewers, pulkit
Cc: mercurial-devel


More information about the Mercurial-devel mailing list