hgweb.cgi
changeset 6141 90e5c82a3859
parent 5995 b913d3aacddc
child 6142 50a277e6ceae
--- a/hgweb.cgi	Fri Feb 01 13:09:45 2008 -0800
+++ b/hgweb.cgi	Mon Feb 18 19:20:22 2008 +0100
@@ -22,9 +22,7 @@
 #os.environ["HGENCODING"] = "UTF-8"
 
 from mercurial.hgweb.hgweb_mod import hgweb
-from mercurial import dispatch, ui
 import mercurial.hgweb.wsgicgi as wsgicgi
 
-u = ui.ui(report_untrusted=False, interactive=False)
-dispatch.profiled(u, lambda: wsgicgi.launch(hgweb("/path/to/repo",
-                                                  "repository name", u)))
+application = hgweb("/path/to/repo", "repository name")
+wsgicgi.launch(application)