Skip to content

Commit

Permalink
Revert "Disable demandimport and undo other fix attempts"
Browse files Browse the repository at this point in the history
This reverts commit 9ea20ad.
  • Loading branch information
myieye committed Dec 14, 2023
1 parent 9ea20ad commit 77e1b53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion hgweb/hg.conf
Original file line number Diff line number Diff line change
@@ -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
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.disable()
from mercurial import demandimport; demandimport.enable()

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

0 comments on commit 77e1b53

Please sign in to comment.