From 77e1b530782a0c0cc01241cae2b4d316aa455581 Mon Sep 17 00:00:00 2001 From: Tim Haasdyk Date: Thu, 14 Dec 2023 17:28:43 +0100 Subject: [PATCH] Revert "Disable demandimport and undo other fix attempts" This reverts commit 9ea20adae59388e83abe5178f5b807c5b14aef96. --- hgweb/hg.conf | 3 ++- hgweb/hgweb.wsgi | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hgweb/hg.conf b/hgweb/hg.conf index 6194e5198..d39d050c0 100644 --- a/hgweb/hg.conf +++ b/hgweb/hg.conf @@ -1,5 +1,6 @@ LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so -WSGIPythonOptimize 1 +WSGIPythonOptimize 0 +WSGILazyInitialization Off WSGISocketPrefix logs/wsgi LogLevel debug ServerName localhost diff --git a/hgweb/hgweb.wsgi b/hgweb/hgweb.wsgi index 55d591dae..876a55f3e 100644 --- a/hgweb/hgweb.wsgi +++ b/hgweb/hgweb.wsgi @@ -13,7 +13,7 @@ config = b"/var/hg/hgweb.hgrc" #import cgitb; cgitb.enable() # enable demandloading to reduce startup time -from mercurial import demandimport; demandimport.disable() +from mercurial import demandimport; demandimport.enable() from mercurial.hgweb import hgweb application = hgweb(config)