Changes between Version 27 and Version 28 of MultipleRepositorySupport
- Timestamp:
- Jul 29, 2009, 12:53:42 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MultipleRepositorySupport
v27 v28 54 54 6. Copy the mercurial plugin egg file to the <trac-env>/plugins directory 55 55 56 7. make sure the following is somewhere in <trac-env>/conf/trac.ini , adding all the desired repositories to the [repositories] section:56 7. make sure the following is somewhere in <trac-env>/conf/trac.ini: 57 57 {{{ 58 58 [components] 59 59 tracext.hg.* = enabled 60 60 }}} 61 8. Add all your repositories in the ''Repositories'' admin panel. Alternatively, you can add the repositories to the `[repositories]` section of `trac.ini`, but note that this has some restrictions on the repository names (i.e. lowercase, no '.'): 62 {{{ 61 63 [repositories] 62 64 my_repo_a.dir = <path_to_a_repository> 63 65 my_repo_b.dir = <path_to_another_repository> 64 66 my_repo_c.dir = <path_to_yet_another_repository> 65 my_repo_c.type = direct-svnfs67 my_repo_c.type = svnfs 66 68 67 69 [trac] … … 71 73 Note that when the repository `.type` is not specified, the value of `[trac] repository_type` is used. [[br]] 72 74 In the above example, this means that `my_repo_a` and `my_repo_b` are Mercurial (hg) repositories. [[br]] 73 Note also that for now, only the `direct-svnfs` repository type can be used for Subversion repositories, 74 as the cached repository used by the other type (`svn`) has not yet been extended to support multiple repositories. 75 8. Cross your fingers, and hope it works :) 75 9. Synchronize all your repositories: 76 {{{ 77 trac-admin <trac-env> repository resync "(default)" 78 trac-admin <trac-env> repository resync my_repo_a 79 trac-admin <trac-env> repository resync my_repo_b 80 trac-admin <trac-env> repository resync my_repo_c 81 }}} 82 10. Install post-commit hooks for all your repositories, and have them call `trac-admin <trac-env> changeset added` for every new changeset: 83 {{{ 84 trac-admin <trac-env> changeset added my_repo_c $REV 85 }}} 86 11. Cross your fingers, and hope it works :) 76 87 [[br]] ''It really should or it's a bug ;-)'' 77 88 … … 129 140 !ConfigParser limitation (#7378). 130 141 142 * rblank: Note that this is less of a concern now that repositories can be added from the web interface. 143 131 144 > 2. Since you use the init tag as the name to show in the ''Repository Index'', it seems I cannot have a period in the name of the repository as shown. 132 145 133 146 Also related to the way the the .ini keys are read. It would be possible to look first for the ending `.dir` part and then get the name. 147 148 * rblank: Again, not an issue anymore with the web interface. 134 149 135 150 > 3. I get a ''default'' in the ''Repository Index'', as well as that same repository listed in the previous single repository manner. I think that when the multiple repositories are listed, and one of them is the same as the trac repository_dir, it does not need to be listed twice or three times.