Show More
@@ -1052,20 +1052,24 b' Configuration for extensions that need t' | |||||
1052 | ``subpaths`` |
|
1052 | ``subpaths`` | |
1053 | """""""""""" |
|
1053 | """""""""""" | |
1054 |
|
1054 | |||
1055 | Defines subrepositories source locations rewriting rules of the form:: |
|
1055 | Subrepository source URLs can go stale if a remote server changes name | |
|
1056 | or becomes temporarily unavailable. This section lets you define | |||
|
1057 | rewrite rules of the form:: | |||
1056 |
|
1058 | |||
1057 | <pattern> = <replacement> |
|
1059 | <pattern> = <replacement> | |
1058 |
|
1060 | |||
1059 |
|
|
1061 | where ``pattern`` is a regular expression matching a subrepository | |
1060 |
``replacement`` is the replacement string used to |
|
1062 | source URL and ``replacement`` is the replacement string used to | |
1061 |
can be matched in ``pattern`` and referenced in |
|
1063 | rewrite it. Groups can be matched in ``pattern`` and referenced in | |
1062 | instance:: |
|
1064 | ``replacements``. For instance:: | |
1063 |
|
1065 | |||
1064 | http://server/(.*)-hg/ = http://hg.server/\1/ |
|
1066 | http://server/(.*)-hg/ = http://hg.server/\1/ | |
1065 |
|
1067 | |||
1066 | rewrites ``http://server/foo-hg/`` into ``http://hg.server/foo/``. |
|
1068 | rewrites ``http://server/foo-hg/`` into ``http://hg.server/foo/``. | |
1067 |
|
1069 | |||
1068 | All patterns are applied in definition order. |
|
1070 | Relative subrepository paths are first made absolute, and the the | |
|
1071 | rewrite rules are then applied on the full (absolute) path. The rules | |||
|
1072 | are applied in definition order. | |||
1069 |
|
1073 | |||
1070 | ``trusted`` |
|
1074 | ``trusted`` | |
1071 | """"""""""" |
|
1075 | """"""""""" |
General Comments 0
You need to be logged in to leave comments.
Login now