Opened 4 years ago
Last modified 1 year ago
the patch attached adds support for the myltirepos branch (see http://trac.edgewall.org/wiki/MultipleRepositorySupport)
just formatting of summary for better patch visibility in ticket lists
Modify to work with current trunk (rev.9715)
Tested the patch and it doesn't seem to have any side affects yet.
This patch is needed with Trac 0.12 when using source:/trunk/foo.bar as include!
Modify to work with Trac-012.1
I confirm the batch works well on 0.12.2.
Tested on 0.12.2 and works correctly.
Updated patch that works with includemacro r112266 and trac 0.12
#3910 closed as a duplicate.
(In [11531]) Refs #4162:
The following code allows 0.11 and 0.12+ to be supported:
repos_mgr = RepositoryManager(self.env) try: #0.12+ (repos_name,repos,source_obj) = repos_mgr.get_repository_by_path(source_obj) except AttributeError, e: #0.11 repos = repos_mgr.get_repository(formatter.req.authname)
I'm not sure this is the best way to accomplish 0.11 and 0.12 repository support, but it seems to work for now. hasienda, do you have any best-practices for this?
(In [11532]) Refs #4162: Created trunk, branches, tags directory structure.
(In [11533]) Refs #4162: Created 0.11 branch from r10462.
(In [11534]) Refs #4162: Created 0.11 branch from r10462.
(In [11535]) Refs #4162: Cleanup error in [11533] that was fixed in [11534].
(In [11540]) Refs #4162: Part of [11531]. _get_source was returning source_obj rather than dest_format.