Skip to content
Snippets Groups Projects
Commit e46c3b6a authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

py3: fix dumbhttp.py to convert --daemon-postexec arguments back to bytes

parent 21be76e0
Branches
Tags
No related merge requests found
......@@ -15,6 +15,7 @@
test-automv.t
test-backout.t
test-backwards-remove.t
test-bad-pull.t
test-basic.t
test-bheads.t
test-bisect.t
......@@ -53,6 +54,7 @@
test-clone-pull-corruption.t
test-clone-r.t
test-clone-update-order.t
test-clonebundles.t
test-commit-amend.t
test-commit-interactive.t
test-commit-multiple.t
......
......@@ -13,6 +13,7 @@
import sys
from mercurial import (
encoding,
pycompat,
server,
util,
......@@ -66,7 +67,8 @@
opts = {b'pid_file': options.pid,
b'daemon': not options.foreground,
b'daemon_postexec': options.daemon_postexec}
b'daemon_postexec': pycompat.rapply(encoding.strtolocal,
options.daemon_postexec)}
service = simplehttpservice(options.host, options.port)
runargs = [sys.executable, __file__] + sys.argv[1:]
runargs = [pycompat.fsencode(a) for a in runargs]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment