mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
py3: fix test-ssh.t
Summary: It now passes Reviewed By: xavierd Differential Revision: D22102239 fbshipit-source-id: 78a680eb06ad1ab1be94279c7c4668be9a8673be
This commit is contained in:
parent
4409ebb103
commit
6dd5d70b1e
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user