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