Show More
@@ -1,50 +1,50 b'' | |||
|
1 | 1 | Mercurial's internal web server, hgweb, can serve either a single |
|
2 | 2 | repository, or a tree of repositories. In the second case, repository |
|
3 | 3 | paths and global options can be defined using a dedicated |
|
4 | 4 | configuration file common to :hg:`serve`, ``hgweb.wsgi``, |
|
5 | 5 | ``hgweb.cgi`` and ``hgweb.fcgi``. |
|
6 | 6 | |
|
7 | 7 | This file uses the same syntax as other Mercurial configuration files |
|
8 | 8 | but recognizes only the following sections: |
|
9 | 9 | |
|
10 | 10 | - web |
|
11 | 11 | - paths |
|
12 | 12 | - collections |
|
13 | 13 | |
|
14 | 14 | The ``web`` options are thorougly described in :hg:`help config`. |
|
15 | 15 | |
|
16 | 16 | The ``paths`` section maps URL paths to paths of repositories in the |
|
17 | 17 | filesystem. hgweb will not expose the filesystem directly - only |
|
18 | 18 | Mercurial repositories can be published and only according to the |
|
19 | 19 | configuration. |
|
20 | 20 | |
|
21 | 21 | The left hand side is the path in the URL. Note that hgweb reserves |
|
22 | 22 | subpaths like ``rev`` or ``file``, try using different names for |
|
23 | 23 | nested repositories to avoid confusing effects. |
|
24 | 24 | |
|
25 | 25 | The right hand side is the path in the filesystem. If the specified |
|
26 | 26 | path ends with ``*`` or ``**`` the filesystem will be searched |
|
27 | 27 | recursively for repositories below that point. |
|
28 | 28 | With ``*`` it will not recurse into the repositories it finds (except for |
|
29 | 29 | ``.hg/patches``). |
|
30 | 30 | With ``**`` it will also search inside repository working directories |
|
31 | 31 | and possibly find subrepositories. |
|
32 | 32 | |
|
33 | 33 | In this example:: |
|
34 | 34 | |
|
35 | 35 | [paths] |
|
36 | 36 | /projects/a = /srv/tmprepos/a |
|
37 | 37 | /projects/b = c:/repos/b |
|
38 | 38 | / = /srv/repos/* |
|
39 | 39 | /user/bob = /home/bob/repos/** |
|
40 | 40 | |
|
41 | 41 | - The first two entries make two repositories in different directories |
|
42 | 42 | appear under the same directory in the web interface |
|
43 | 43 | - The third entry will publish every Mercurial repository found in |
|
44 | 44 | ``/srv/repos/``, for instance the repository ``/srv/repos/quux/`` |
|
45 | 45 | will appear as ``http://server/quux/`` |
|
46 | 46 | - The fourth entry will publish both ``http://server/user/bob/quux/`` |
|
47 | 47 | and ``http://server/user/bob/quux/testsubrepo/`` |
|
48 | 48 | |
|
49 |
The ``collections`` section is deprecated and has been superse |
|
|
49 | The ``collections`` section is deprecated and has been superseded by | |
|
50 | 50 | ``paths``. |
General Comments 0
You need to be logged in to leave comments.
Login now