Mercurial > bortreb
view hgweb.py @ 0:be88a0c804e6
initial commit
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Wed, 19 Oct 2011 22:15:44 -0700 |
parents | |
children | dfc6cd448c24 |
line wrap: on
line source
1 #!/usr/bin/env python2 #3 # An example hgweb CGI script, edit as necessary4 # See also http://mercurial.selenic.com/wiki/PublishingRepositories6 # Path to repo or hgweb config to serve (see 'hg help hgweb')7 config = "/home/r/proj/bortreb/hgweb.config"9 # Uncomment and adjust if Mercurial is not installed system-wide:10 #import sys; sys.path.insert(0, "/path/to/python/lib")12 # Uncomment to send python tracebacks to the browser if an error occurs:13 #import cgitb; cgitb.enable()15 from mercurial import demandimport; demandimport.enable()16 from mercurial.hgweb import hgweb, wsgicgi17 application = hgweb(config)18 wsgicgi.launch(application)