Mercurial > public > mercurial-scm > hg-stable
diff hgwebdir.cgi @ 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/hgwebdir.cgi Fri Feb 01 13:09:45 2008 -0800 +++ b/hgwebdir.cgi Mon Feb 18 19:20:22 2008 +0100 @@ -22,7 +22,6 @@ #os.environ["HGENCODING"] = "UTF-8" from mercurial.hgweb.hgwebdir_mod import hgwebdir -from mercurial import dispatch, ui import mercurial.hgweb.wsgicgi as wsgicgi # The config file looks like this. You can have paths to individual @@ -44,5 +43,5 @@ # Alternatively you can pass a list of ('virtual/path', '/real/path') tuples # or use a dictionary with entries like 'virtual/path': '/real/path' -u = ui.ui(report_untrusted=False, interactive=False) -dispatch.profiled(u, lambda: wsgicgi.launch(hgwebdir('hgweb.config', u))) +application = hgwebdir('hgweb.config') +wsgicgi.launch(application)