Changes between Version 34 and Version 35 of MultipleRepositorySupport
- Timestamp:
- Jan 26, 2010, 12:11:02 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MultipleRepositorySupport
v34 v35 18 18 - r7961: initial support for cached repositories 19 19 - r8178: current version - should be "stable" (i.e. you can report bugs against that revision if you find some). Note that there's now support for cached repositories, and as this involved a schema change, an '''environment upgrade''' is needed. 20 - r9084: real close to the end of the branch ;-) 20 21 21 22 The approach is quite simple: beyond repository connectors, there's now repository providers (IRepositoryProvider components) which are responsible for making available a list of named repositories. That name can be arbitrary (in particular, it may contain '/' to denote a pseudo-hierarchy) and will be used as a prefix for any repository path. … … 29 30 30 31 == Related Tickets == 31 ![[TicketQuery(group=status,order=priority,col=summary|component|milestone,format=table,keywords=~multirepos)]]32 [[TicketQuery(group=status,order=priority,col=summary|component|milestone,format=default,keywords=~multirepos)]] 32 33 33 34 == Installation (with mercurial) == … … 107 108 - #7743 for mercurial - should add a contrib file there, containing a `hook` function calling the Trac API appropriately, and have an example of a command hook calling trac-admin directly. 108 109 - A separate script is not strictly necessary (at least on Linux). The following section in `hgrc` does the trick: 109 {{{ 110 [hooks] 111 commit = trac-admin /path/to/env changeset added repo_name $HG_NODE 112 changegroup = hg log -r $HG_NODE: --template "{node} " | xargs trac-admin /path/to/env changeset added repo_name 113 }}} 110 {{{ 111 [hooks] 112 commit = trac-admin /path/to/env changeset added repo_name $HG_NODE 113 changegroup = hg log -r $HG_NODE: --template "{node} " | xargs trac-admin /path/to/env changeset added repo_name 114 }}} 114 115 This should be documented in TracMercurial, though. OTOH, for Windows we will need a Python hook anyway, so we could as well create a generic one. 115 116