# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1524503542 -3600
#      Mon Apr 23 18:12:22 2018 +0100
# Node ID 3c85f4040abd960f758e462d20f47316590bee76
# Parent  ee1156b7a59d9d6cb5209a2dca7f84259e33b332
Fix HgWeb setup to fix http push tests

diff --git a/benchmarks/basic_commands.py b/benchmarks/basic_commands.py
--- a/benchmarks/basic_commands.py
+++ b/benchmarks/basic_commands.py
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
 import base64
 import errno
 import os
@@ -169,10 +171,13 @@
     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',
-            '--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