Mercurial > hg
diff contrib/hgwebdir.fcgi @ 7799:43edbd8cc1e0
contrib: bring hgwebdir.fcgi up-to-date with current WSGI practices
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Tue, 24 Feb 2009 16:01:29 +0100 |
parents | 79d1bb737c16 |
children |
line wrap: on
line diff
--- a/contrib/hgwebdir.fcgi Sat Feb 21 17:46:06 2009 -0600 +++ b/contrib/hgwebdir.fcgi Tue Feb 24 16:01:29 2009 +0100 @@ -22,7 +22,6 @@ #os.environ["HGENCODING"] = "UTF-8" from mercurial.hgweb.hgwebdir_mod import hgwebdir -from mercurial.hgweb.request import wsgiapplication from flup.server.fcgi import WSGIServer # The config file looks like this. You can have paths to individual @@ -60,7 +59,4 @@ # Alternatively you can pass a list of ('virtual/path', '/real/path') tuples # or use a dictionary with entries like 'virtual/path': '/real/path' -def make_web_app(): - return hgwebdir("hgweb.config") - -WSGIServer(wsgiapplication(make_web_app)).run() +WSGIServer(hgwebdir('hgweb.config')).run()