diff -r feac5b0bf9ba -r d74fc8dec2b4 hgweb.cgi --- 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)