Skip to content

Commit

Permalink
Disable demandimport and undo other fix attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
myieye committed Dec 14, 2023
1 parent df02e09 commit 9ea20ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions hgweb/hg.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so
WSGIPythonOptimize 0
WSGILazyInitialization Off
WSGIPythonOptimize 1
WSGISocketPrefix logs/wsgi
LogLevel debug
ServerName localhost
Expand Down
2 changes: 1 addition & 1 deletion hgweb/hgweb.wsgi
Original file line number Diff line number Diff line change
Expand Up @@ -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.enable()
from mercurial import demandimport; demandimport.disable()

from mercurial.hgweb import hgweb
application = hgweb(config)

0 comments on commit 9ea20ad

Please sign in to comment.