Skip to content
Snippets Groups Projects
Commit 3c85f4040abd authored by Boris Feld's avatar Boris Feld
Browse files

Fix HgWeb setup to fix http push tests

parent ee1156b7a59d
No related branches found
No related tags found
No related merge requests found
from __future__ import print_function
import base64
import errno
import os
......@@ -169,6 +171,6 @@
def start(self, hgpath, environ):
config = os.path.abspath(os.path.join(
os.path.dirname(__file__), os.pardir, 'hgweb.config'))
self.proc = subprocess.Popen([
hgweb_cmd = [
hgpath, 'serve', '--cwd', REPOS_DIR,
'-a', 'localhost', '-p', '0',
......@@ -173,6 +175,9 @@
hgpath, 'serve', '--cwd', REPOS_DIR,
'-a', 'localhost', '-p', '0',
'--webdir-conf', config],
'--config', 'web.push_ssl=False',
'--config', 'web.allow_push=*',
'--webdir-conf', config]
self.proc = subprocess.Popen(hgweb_cmd,
env=environ,
stdout=subprocess.PIPE)
# we have to read output in a thread to avoid deadlocks
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment