1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mercurial/hgweb.cgi Wed Feb 08 20:15:40 2012 +0200 1.3 @@ -0,0 +1,16 @@ 1.4 +#!@l_prefix@/bin/python 1.5 + 1.6 +import os 1.7 +import sys 1.8 +sys.path.insert(0, "@l_prefix@/lib/mercurial") 1.9 + 1.10 +from mercurial import demandimport 1.11 +demandimport.enable() 1.12 + 1.13 +from mercurial.hgweb import hgweb, wsgicgi 1.14 +if os.getenv('HGWEB_REPO_PATH', '') != '' and os.getenv('HGWEB_REPO_NAME', '') != '': 1.15 + application = hgweb(os.getenv('HGWEB_REPO_PATH'), os.getenv('HGWEB_REPO_NAME')) 1.16 +else: 1.17 + application = hgweb('@l_prefix@/etc/mercurial/hgweb.cfg') 1.18 +wsgicgi.launch(application) 1.19 +