From patchwork Sat Aug 31 22:59:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D6775: py3: convert hg executable path to bytes in missing case in procutil From: phabricator X-Patchwork-Id: 41456 Message-Id: <6b289961f6532b07e1b71a24482a28f7@localhost.localdomain> To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Sat, 31 Aug 2019 22:59:27 +0000 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 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):