diff -r 9d79786fbc64 -r 00bfe519c9d3 mercurial/hgweb.cgi --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mercurial/hgweb.cgi Wed Feb 08 20:15:40 2012 +0200 @@ -0,0 +1,16 @@ +#!@l_prefix@/bin/python + +import os +import sys +sys.path.insert(0, "@l_prefix@/lib/mercurial") + +from mercurial import demandimport +demandimport.enable() + +from mercurial.hgweb import hgweb, wsgicgi +if os.getenv('HGWEB_REPO_PATH', '') != '' and os.getenv('HGWEB_REPO_NAME', '') != '': + application = hgweb(os.getenv('HGWEB_REPO_PATH'), os.getenv('HGWEB_REPO_NAME')) +else: + application = hgweb('@l_prefix@/etc/mercurial/hgweb.cfg') +wsgicgi.launch(application) +