##// END OF EJS Templates
Allow list of (virtual, real) or dictionary to be passed to hgwebdir.
Allow list of (virtual, real) or dictionary to be passed to hgwebdir.

File last commit:

r1064:8d791bea default
r1143:4fffb3d8 default
Show More
hgwebdir.cgi
17 lines | 382 B | text/plain | TextLexer
mpm@selenic.com
Add a multi-repository server...
r941 #!/usr/bin/env python
#
# An example CGI script to export multiple hgweb repos, edit as necessary
Thomas Arendsen Hein
Removed obsolete imports from hgwebdir.cgi
r1064 import cgitb, sys
mpm@selenic.com
Add a multi-repository server...
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()