hgwebdir.cgi
changeset 5197 55860a45bbf2
parent 3868 6033d9f28052
child 5226 79279b5583c6
--- a/hgwebdir.cgi
+++ b/hgwebdir.cgi
@@ -2,6 +2,9 @@
 #
 # An example CGI script to export multiple hgweb repos, edit as necessary
 
+# enable importing on demand to reduce startup time
+from mercurial import demandimport; demandimport.enable()
+
 # send python tracebacks to the browser if an error occurs:
 import cgitb
 cgitb.enable()