view hgweb.py @ 6:1f4dba842330

add ssh-tunnel.
author Robert McIntyre <rlm@mit.edu>
date Fri, 15 Mar 2013 05:07:08 +0000
parents 96dc69a8cf91
children
line wrap: on
line source
1 #!/usr/bin/env python2
3 config = "/home/r/proj/bortreb/hgweb.config"
5 # Uncomment to send python tracebacks to the browser if an error occurs:
6 #import cgitb; cgitb.enable()
8 from mercurial import demandimport; demandimport.enable()
9 from mercurial.hgweb import hgweb, wsgicgi
10 application = hgweb(config)
11 wsgicgi.launch(application)