py3: fix test-ssh.t

Summary: It now passes

Reviewed By: xavierd

Differential Revision: D22102239

fbshipit-source-id: 78a680eb06ad1ab1be94279c7c4668be9a8673be
This commit is contained in:
Durham Goode 2020-06-19 13:36:42 -07:00 committed by Facebook GitHub Bot
parent 4409ebb103
commit 6dd5d70b1e
2 changed files with 3 additions and 2 deletions

View File

@ -307,8 +307,9 @@ class wirepeer(repository.legacypeer):
try:
branchmap = {}
for branchpart in d.splitlines():
branchpart = pycompat.decodeutf8(branchpart)
branchname, branchheads = branchpart.split(" ", 1)
branchname = encoding.tolocal(urlreq.unquote(branchname))
branchname = urlreq.unquote(branchname)
branchheads = decodelist(branchheads)
branchmap[branchname] = branchheads
yield branchmap

View File

@ -1,4 +1,3 @@
#require py2
$ disable treemanifest
This test tries to exercise the ssh functionality with a dummy script
@ -245,6 +244,7 @@ a bad, evil hook that prints to stdout
> import sys
> def hook(ui, repo, hooktype, **kwargs):
> sys.stdout.write("KABOOM IN PROCESS\n")
> sys.stdout.flush()
> EOF
$ cat <<EOF >> ../remote/.hg/hgrc