##// END OF EJS Templates
Documented passing list or dict instead of config file in hgwebdir.cgi
Thomas Arendsen Hein -
r1144:8a39df05 default
parent child Browse files
Show More
@@ -1,17 +1,20
1 1 #!/usr/bin/env python
2 2 #
3 3 # An example CGI script to export multiple hgweb repos, edit as necessary
4 4
5 5 import cgitb, sys
6 6 cgitb.enable()
7 7
8 8 # sys.path.insert(0, "/path/to/python/lib") # if not a system-wide install
9 9 from mercurial import hgweb
10 10
11 11 # The config file looks like this:
12 12 # [paths]
13 13 # virtual/path = /real/path
14 14 # virtual/path = /real/path
15 15
16 # Alternatively you can pass a list of ('virtual/path', '/real/path') tuples
17 # or use a dictionary with entries like 'virtual/path': '/real/path'
18
16 19 h = hgweb.hgwebdir("hgweb.config")
17 20 h.run()
General Comments 0
You need to be logged in to leave comments. Login now