changeset 5566 | d74fc8dec2b4 |
parent 5244 | 79279b5583c6 |
child 5995 | b913d3aacddc |
--- a/hgweb.cgi Wed Nov 28 13:58:31 2007 -0800 +++ b/hgweb.cgi Fri Nov 30 18:23:18 2007 +0100 @@ -22,10 +22,7 @@ #os.environ["HGENCODING"] = "UTF-8" from mercurial.hgweb.hgweb_mod import hgweb -from mercurial.hgweb.request import wsgiapplication import mercurial.hgweb.wsgicgi as wsgicgi -def make_web_app(): - return hgweb("/path/to/repo", "repository name") - -wsgicgi.launch(wsgiapplication(make_web_app)) +application = hgweb("/path/to/repo", "repository name") +wsgicgi.launch(application)