Modify

Opened 6 years ago

Last modified 8 months ago

#4162 assigned enhancement

[patch] support Trac 0.12 (multirepository)

Reported by: termim@… Owned by: rjollos
Priority: high Component: IncludeMacro
Severity: blocker Keywords: MultipleRepository
Cc: hasienda Trac Release: 0.12

Description

the patch attached adds support for the myltirepos branch (see http://trac.edgewall.org/wiki/MultipleRepositorySupport)

Attachments (4)

macros.py.diff (1.0 KB) - added by anonymous 6 years ago.
macros.py.2.diff (1.0 KB) - added by termim@… 4 years ago.
Modify to work with current trunk (rev.9715)
0.12.diff (1.3 KB) - added by termim@… 4 years ago.
Modify to work with Trac-012.1
includemacro-4162-0.12.diff (1.1 KB) - added by davidfraser 2 years ago.
Updated patch that works with includemacro r112266 and trac 0.12

Download all attachments as: .zip

Change History (20)

Changed 6 years ago by anonymous

comment:1 Changed 5 years ago by hasienda

  • Summary changed from Patch to support multirepository branch to [patch] support multirepository branch

just formatting of summary for better patch visibility in ticket lists

Changed 4 years ago by termim@…

Modify to work with current trunk (rev.9715)

comment:2 Changed 4 years ago by termim@…

  • Priority changed from normal to high
  • Severity changed from normal to critical
  • Summary changed from [patch] support multirepository branch to [patch] support Trac 0.12 (multirepository)

comment:3 Changed 4 years ago by benjamin@…

  • Trac Release changed from 0.11 to 0.12

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!

Changed 4 years ago by termim@…

Modify to work with Trac-012.1

comment:4 Changed 4 years ago by bersace

I confirm the batch works well on 0.12.2.

comment:5 Changed 3 years ago by wimpunk@…

Tested on 0.12.2 and works correctly.

Changed 2 years ago by davidfraser

Updated patch that works with includemacro r112266 and trac 0.12

comment:6 Changed 2 years ago by rjollos

#3910 closed as a duplicate.

comment:7 Changed 2 years ago by rjollos

  • Owner changed from coderanger to rjollos
  • Status changed from new to assigned

comment:8 Changed 2 years ago by rjollos

(In [11531]) Refs #4162:

  • Added multirepository support (0.12 compatibility). The change preserves backward compatibility with Trac 0.11.
  • Set svn:eol-style and svn:mime-type properties.
  • Set version to 3.0.0dev.

comment:9 Changed 2 years ago by rjollos

  • Cc hasienda added
  • Severity changed from critical to blocker

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?

comment:10 Changed 2 years ago by rjollos

(In [11532]) Refs #4162: Created trunk, branches, tags directory structure.

comment:11 Changed 2 years ago by rjollos

(In [11533]) Refs #4162: Created 0.11 branch from r10462.

comment:12 Changed 2 years ago by rjollos

(In [11534]) Refs #4162: Created 0.11 branch from r10462.

comment:13 Changed 2 years ago by rjollos

(In [11535]) Refs #4162: Cleanup error in [11533] that was fixed in [11534].

comment:14 Changed 2 years ago by rjollos

(In [11540]) Refs #4162: Part of [11531]. _get_source was returning source_obj rather than dest_format.

comment:15 Changed 15 months ago by rjollos

  • Status changed from assigned to new

comment:16 Changed 8 months ago by rjollos

  • Status changed from new to assigned

Add Comment

Modify Ticket

Action
as assigned .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.