Edgewall Software

Changes between Version 27 and Version 28 of MultipleRepositorySupport


Ignore:
Timestamp:
Jul 29, 2009, 12:53:42 AM (15 years ago)
Author:
Remy Blank
Comment:

Comment on repository name limitations, and some updates.

Legend:

Unmodified
Added
Removed
Modified
  • MultipleRepositorySupport

    v27 v28  
    5454 6. Copy the mercurial plugin egg file to the <trac-env>/plugins directory
    5555
    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:
    5757{{{
    5858[components]
    5959tracext.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{{{
    6163[repositories]
    6264my_repo_a.dir = <path_to_a_repository>
    6365my_repo_b.dir = <path_to_another_repository>
    6466my_repo_c.dir = <path_to_yet_another_repository>
    65 my_repo_c.type = direct-svnfs
     67my_repo_c.type = svnfs
    6668
    6769[trac]
     
    7173   Note that when the repository `.type` is not specified, the value of `[trac] repository_type` is used. [[br]]
    7274   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{{{
     77trac-admin <trac-env> repository resync "(default)"
     78trac-admin <trac-env> repository resync my_repo_a
     79trac-admin <trac-env> repository resync my_repo_b
     80trac-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{{{
     84trac-admin <trac-env> changeset added my_repo_c $REV
     85}}}
     86 11. Cross your fingers, and hope it works :)
    7687   [[br]] ''It really should or it's a bug ;-)''
    7788
     
    129140!ConfigParser limitation (#7378).
    130141
     142 * rblank: Note that this is less of a concern now that repositories can be added from the web interface.
     143
    131144> 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.
    132145
    133146Also 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.
    134149
    135150> 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.