Mercurial > repo > hg-stable
view hgweb.cgi @ 19161:04eb7d7e115b
Added signature for changeset cceaf7af4c9e
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 01 Jun 2013 17:10:24 -0500 |
parents | 227b9f13db13 |
children |
line source
1 #!/usr/bin/env python
2 #
3 # An example hgweb CGI script, edit as necessary
4 # See also http://mercurial.selenic.com/wiki/PublishingRepositories
6 # Path to repo or hgweb config to serve (see 'hg help hgweb')
7 config = "/path/to/repo/or/config"
9 # Uncomment and adjust if Mercurial is not installed system-wide
10 # (consult "installed modules" path from 'hg debuginstall'):
11 #import sys; sys.path.insert(0, "/path/to/python/lib")
13 # Uncomment to send python tracebacks to the browser if an error occurs:
14 #import cgitb; cgitb.enable()
16 from mercurial import demandimport; demandimport.enable()
17 from mercurial.hgweb import hgweb, wsgicgi
18 application = hgweb(config)
19 wsgicgi.launch(application)