hgwebdir.cgi
17 lines
| 382 B
| text/plain
|
TextLexer
mpm@selenic.com
|
r941 | #!/usr/bin/env python | ||
# | ||||
# An example CGI script to export multiple hgweb repos, edit as necessary | ||||
Thomas Arendsen Hein
|
r1064 | import cgitb, sys | ||
mpm@selenic.com
|
r941 | cgitb.enable() | ||
# sys.path.insert(0, "/path/to/python/lib") # if not a system-wide install | ||||
from mercurial import hgweb | ||||
# The config file looks like this: | ||||
# [paths] | ||||
# virtual/path = /real/path | ||||
# virtual/path = /real/path | ||||
h = hgweb.hgwebdir("hgweb.config") | ||||
h.run() | ||||