diff contrib/hgwebdir.fcgi @ 6141:90e5c82a3859

Backed out changeset b913d3aacddc (see issue971/msg5317)
author Thomas Arendsen Hein <thomas@intevation.de>
date Mon, 18 Feb 2008 19:20:22 +0100
parents b913d3aacddc
children 50a277e6ceae
line wrap: on
line diff
--- 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()