Patchwork D6775: py3: convert hg executable path to bytes in missing case in procutil

login
register
mail settings
Submitter phabricator
Date Aug. 31, 2019, 10:59 p.m.
Message ID <6b289961f6532b07e1b71a24482a28f7@localhost.localdomain>
Download mbox | patch
Permalink /patch/41456/
State Not Applicable
Headers show

Comments

phabricator - Aug. 31, 2019, 10:59 p.m.
Closed by commit rHG5e784b7fcd3a: py3: convert hg executable path to bytes in missing case in procutil (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6775?vs=16337&id=16353

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

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

AFFECTED FILES
  mercurial/utils/procutil.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/utils/procutil.py b/mercurial/utils/procutil.py
--- a/mercurial/utils/procutil.py
+++ b/mercurial/utils/procutil.py
@@ -246,7 +246,7 @@ 
             _sethgexecutable(pycompat.fsencode(mainmod.__file__))
         else:
             exe = findexe('hg') or os.path.basename(sys.argv[0])
-            _sethgexecutable(exe)
+            _sethgexecutable(pycompat.fsencode(exe))
     return _hgexecutable
 
 def _sethgexecutable(path):