hgweb.cgi
12 lines
| 283 B
| text/plain
|
TextLexer
mpm@selenic.com
|
r202 | #!/usr/bin/env python | ||
mpm@selenic.com
|
r159 | # | ||
# An example CGI script to use hgweb, edit as necessary | ||||
import cgitb, os, sys | ||||
mpm@selenic.com
|
r391 | cgitb.enable() | ||
mpm@selenic.com
|
r159 | # sys.path.insert(0, "/path/to/python/lib") # if not a system-wide install | ||
from mercurial import hgweb | ||||
h = hgweb.hgweb("/path/to/repo", "repository name") | ||||
h.run() | ||||