mercurial/hgweb.cgi

Mon, 17 Sep 2012 19:10:10 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 17 Sep 2012 19:10:10 +0200
changeset 689
9fe04d4d4e5a
permissions
-rw-r--r--

Update to new version of vendor software although Oracle fails to deliver.
More specifically, newer db(3) patch revisions exist but Oracle has
removed them from the canonical download server URI for Berkely DB.

michael@600 1 #!@l_prefix@/bin/python
michael@600 2
michael@600 3 import os
michael@600 4 import sys
michael@600 5 sys.path.insert(0, "@l_prefix@/lib/mercurial")
michael@600 6
michael@600 7 from mercurial import demandimport
michael@600 8 demandimport.enable()
michael@600 9
michael@600 10 from mercurial.hgweb import hgweb, wsgicgi
michael@600 11 if os.getenv('HGWEB_REPO_PATH', '') != '' and os.getenv('HGWEB_REPO_NAME', '') != '':
michael@600 12 application = hgweb(os.getenv('HGWEB_REPO_PATH'), os.getenv('HGWEB_REPO_NAME'))
michael@600 13 else:
michael@600 14 application = hgweb('@l_prefix@/etc/mercurial/hgweb.cfg')
michael@600 15 wsgicgi.launch(application)
michael@600 16

mercurial