--- a/contrib/hgwebdir.fcgi Fri Feb 01 13:09:45 2008 -0800
+++ b/contrib/hgwebdir.fcgi Mon Feb 18 19:20:22 2008 +0100
@@ -23,7 +23,6 @@
from mercurial.hgweb.hgwebdir_mod import hgwebdir
from mercurial.hgweb.request import wsgiapplication
-from mercurial import dispatch, ui
from flup.server.fcgi import WSGIServer
# The config file looks like this. You can have paths to individual
@@ -45,8 +44,7 @@
# Alternatively you can pass a list of ('virtual/path', '/real/path') tuples
# or use a dictionary with entries like 'virtual/path': '/real/path'
-def web_app(ui):
- return lambda: hgwebdir("hgweb.config", ui)
+def make_web_app():
+ return hgwebdir("hgweb.config")
-u = ui.ui(report_untrusted=False, interactive=False)
-dispatch.profiled(u, lambda: WSGIServer(wsgiapplication(web_app(u))).run())
+WSGIServer(wsgiapplication(make_web_app)).run()