2010-04-26 20:03:40 +04:00
|
|
|
# An example WSGI for use with mod_wsgi, edit as necessary
|
2015-09-30 23:43:49 +03:00
|
|
|
# See https://mercurial-scm.org/wiki/modwsgi for more information
|
2010-04-26 20:03:40 +04:00
|
|
|
|
|
|
|
# Path to repo or hgweb config to serve (see 'hg help hgweb')
|
|
|
|
config = "/path/to/repo/or/config"
|
|
|
|
|
2011-11-11 01:40:34 +04:00
|
|
|
# Uncomment and adjust if Mercurial is not installed system-wide
|
|
|
|
# (consult "installed modules" path from 'hg debuginstall'):
|
2010-04-26 20:03:40 +04:00
|
|
|
#import sys; sys.path.insert(0, "/path/to/python/lib")
|
|
|
|
|
|
|
|
# Uncomment to send python tracebacks to the browser if an error occurs:
|
|
|
|
#import cgitb; cgitb.enable()
|
|
|
|
|
|
|
|
# enable demandloading to reduce startup time
|
2019-01-30 03:25:33 +03:00
|
|
|
from edenscm.mercurial import demandimport; demandimport.enable()
|
2010-04-26 20:03:40 +04:00
|
|
|
|
2019-01-30 03:25:33 +03:00
|
|
|
from edenscm.mercurial.hgweb import hgweb
|
2010-04-26 20:03:40 +04:00
|
|
|
application = hgweb(config)
|