Edgewall Software

Changes between Version 23 and Version 24 of TracRepositoryAdmin


Ignore:
Timestamp:
Sep 19, 2011, 10:55:10 AM (10 years ago)
Author:
jeroen@…
Comment:

Made Migration section consistent with documentation

Legend:

Unmodified
Added
Removed
Modified
  • TracRepositoryAdmin

    v23 v24  
    4040The 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.
    4141
    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.
     42The 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.
    4343{{{
    4444#!ini
     
    162162
    163163 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.
    166166 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.
    168168 1. Repeat steps 2, 3 and 4 to add other "named" repositories as needed.
    169169
     
    173173 1. Upgrade to the latest version of the TracMercurial plugin.
    174174 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.
    177177 1. Repeat step 3 to add other "named" repositories as needed.
    178178