Mercurial > hg-stable
changeset 38142:666d90ace0bb
py3: use pycompat.fsencode to convert path to bytes
Differential Revision: https://phab.mercurial-scm.org/D3631
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 20 May 2018 17:35:57 +0530 |
parents | e69628f36196 |
children | b0144fc8b681 |
files | contrib/hg-ssh |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/hg-ssh Sun May 20 17:34:53 2018 +0530 +++ b/contrib/hg-ssh Sun May 20 17:35:57 2018 +0530 @@ -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: