Mercurial > bortreb
annotate hgweb.py @ 7:9dea0b589e58 tip
add server repo.
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 16 Mar 2013 03:40:45 +0000 |
parents | 96dc69a8cf91 |
children |
rev | line source |
---|---|
rlm@5 | 1 #!/usr/bin/env python2 |
rlm@0 | 2 |
rlm@0 | 3 config = "/home/r/proj/bortreb/hgweb.config" |
rlm@0 | 4 |
rlm@0 | 5 # Uncomment to send python tracebacks to the browser if an error occurs: |
rlm@0 | 6 #import cgitb; cgitb.enable() |
rlm@0 | 7 |
rlm@0 | 8 from mercurial import demandimport; demandimport.enable() |
rlm@0 | 9 from mercurial.hgweb import hgweb, wsgicgi |
rlm@0 | 10 application = hgweb(config) |
rlm@0 | 11 wsgicgi.launch(application) |