comparison hgwebdir.cgi @ 1829:b0f6af327fd4

hgwebdir: export collections of repos now you can use [collections] section in hgweb.config to export entire tree of repos.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Fri, 10 Feb 2006 11:25:07 -0800
parents 8a39df05d2c1
children
comparison
equal deleted inserted replaced
1712:21dcf38e5d7d 1829:b0f6af327fd4
6 cgitb.enable() 6 cgitb.enable()
7 7
8 # sys.path.insert(0, "/path/to/python/lib") # if not a system-wide install 8 # sys.path.insert(0, "/path/to/python/lib") # if not a system-wide install
9 from mercurial import hgweb 9 from mercurial import hgweb
10 10
11 # The config file looks like this: 11 # The config file looks like this. You can have paths to individual
12 # repos, collections of repos in a directory tree, or both.
13 #
12 # [paths] 14 # [paths]
13 # virtual/path = /real/path 15 # virtual/path = /real/path
14 # virtual/path = /real/path 16 # virtual/path = /real/path
17 #
18 # [collections]
19 # /prefix/to/strip/off = /root/of/tree/full/of/repos
20 #
21 # collections example: say directory tree /foo contains repos /foo/bar,
22 # /foo/quux/baz. Give this config section:
23 # [collections]
24 # /foo = /foo
25 # Then repos will list as bar and quux/baz.
15 26
16 # Alternatively you can pass a list of ('virtual/path', '/real/path') tuples 27 # Alternatively you can pass a list of ('virtual/path', '/real/path') tuples
17 # or use a dictionary with entries like 'virtual/path': '/real/path' 28 # or use a dictionary with entries like 'virtual/path': '/real/path'
18 29
19 h = hgweb.hgwebdir("hgweb.config") 30 h = hgweb.hgwebdir("hgweb.config")