Changes between Version 23 and Version 24 of TracRepositoryAdmin
- Timestamp:
- Sep 19, 2011, 10:55:10 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracRepositoryAdmin
v23 v24 40 40 The main advantage of specifying repositories in `trac.ini` is that they can be inherited from a global configuration (see the [wiki:TracIni#GlobalConfiguration global configuration] section of TracIni). One drawback is that, due to limitations in the `ConfigParser` class used to parse `trac.ini`, the repository name is always all-lowercase. 41 41 42 The following example defines two Subversion repositories named `project` and `lib`, and a hidden alias to `project` as the default repository. This is a typical use case where a Trac environment previously had a single repository (the `project` repository), and was converted to multiple repositories. The alias ensures that links predating the change continue to resolve to the `project` repository.42 The following example defines two Subversion repositories named `project` and `lib`, and an alias to `project` as the default repository. This is a typical use case where a Trac environment previously had a single repository (the `project` repository), and was converted to multiple repositories. The alias ensures that links predating the change continue to resolve to the `project` repository. 43 43 {{{ 44 44 #!ini … … 162 162 163 163 1. Remove the default repository specification from the `[trac] repository_dir` option. 164 1. Add the "main"repository as a named repository.165 1. Re-synchronize the "main"repository.164 1. Add the main repository as a named repository. 165 1. Re-synchronize the main repository. 166 166 1. Set up post-commit and post-revprop-change hooks on the "main" repository, and set `[trac] repository_sync_per_request` to an empty value. 167 1. Add a hidden alias to the "main" repository as the "(default)" repository. This ensures that all links predating the migration still resolve to the "main"repository.167 1. Add an alias to the main repository as the default repository (by leaving out the the `name`, e.g. `.alias = main`). This ensures that all links predating the migration still resolve to the main repository. 168 168 1. Repeat steps 2, 3 and 4 to add other "named" repositories as needed. 169 169 … … 173 173 1. Upgrade to the latest version of the TracMercurial plugin. 174 174 1. Remove the default repository specification from the `[trac] repository_dir` option. 175 1. Add the "main"repository as a named repository.176 1. Add a hidden alias to the "main" repository as the "(default)" repository. This ensures that all links predating the migration still resolve to the main repository.175 1. Add the main repository as a named repository. 176 1. Add an alias to the main repository as the default repository (by leaving out the the `name`, e.g. `.alias = main`). This ensures that all links predating the migration still resolve to the main repository. 177 177 1. Repeat step 3 to add other "named" repositories as needed. 178 178