Mercurial > bortreb
comparison hgweb.py @ 2:dfc6cd448c24
cleaned up example script
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Wed, 19 Oct 2011 23:22:22 -0700 |
parents | be88a0c804e6 |
children | 96dc69a8cf91 |
comparison
equal
deleted
inserted
replaced
1:7ac5f81af66d | 2:dfc6cd448c24 |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | |
3 # An example hgweb CGI script, edit as necessary | |
4 # See also http://mercurial.selenic.com/wiki/PublishingRepositories | |
5 | 2 |
6 # Path to repo or hgweb config to serve (see 'hg help hgweb') | |
7 config = "/home/r/proj/bortreb/hgweb.config" | 3 config = "/home/r/proj/bortreb/hgweb.config" |
8 | |
9 # Uncomment and adjust if Mercurial is not installed system-wide: | |
10 #import sys; sys.path.insert(0, "/path/to/python/lib") | |
11 | 4 |
12 # Uncomment to send python tracebacks to the browser if an error occurs: | 5 # Uncomment to send python tracebacks to the browser if an error occurs: |
13 #import cgitb; cgitb.enable() | 6 #import cgitb; cgitb.enable() |
14 | 7 |
15 from mercurial import demandimport; demandimport.enable() | 8 from mercurial import demandimport; demandimport.enable() |