From patchwork Mon May 21 18:36:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D3631: py3: use pycompat.fsencode to convert path to bytes From: phabricator X-Patchwork-Id: 31783 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Mon, 21 May 2018 18:36:22 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHG666d90ace0bb: py3: use pycompat.fsencode to convert path to bytes (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3631?vs=8839&id=8856 REVISION DETAIL https://phab.mercurial-scm.org/D3631 AFFECTED FILES contrib/hg-ssh CHANGE DETAILS To: pulkit, #hg-reviewers, indygreg Cc: mercurial-devel diff --git a/contrib/hg-ssh b/contrib/hg-ssh --- a/contrib/hg-ssh +++ b/contrib/hg-ssh @@ -39,6 +39,7 @@ from mercurial import ( dispatch, + pycompat, ui as uimod, ) @@ -69,7 +70,7 @@ path = cmdargv[2] repo = os.path.normpath(os.path.join(cwd, os.path.expanduser(path))) if repo in allowed_paths: - cmd = [b'-R', repo, b'serve', b'--stdio'] + cmd = [b'-R', pycompat.fsencode(repo), b'serve', b'--stdio'] req = dispatch.request(cmd) if readonly: if not req.ui: