D3631: py3: use pycompat.fsencode to convert path to bytes
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Sun May 20 12:24:19 UTC 2018
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D3631
AFFECTED FILES
contrib/hg-ssh
CHANGE DETAILS
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:
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list