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)