Modify

Opened 16 years ago

Closed 5 years ago

Last modified 5 years ago

#4162 closed enhancement (fixed)

[patch] support Trac 0.12 (multirepository)

Reported by: termim@… Owned by: Ryan J Ollos
Priority: high Component: IncludeMacro
Severity: blocker Keywords: MultipleRepository
Cc: Steffen Hoffmann Trac Release: 0.12

Description (last modified by Ryan J Ollos)

The patch attached adds support for the multirepos branch (see trac:MultipleRepositorySupport).

Attachments (4)

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

Download all attachments as: .zip

Change History (21)

Changed 16 years ago by anonymous

Attachment: macros.py.diff added

comment:1 Changed 15 years ago by Steffen Hoffmann

Summary: Patch to support multirepository branch[patch] support multirepository branch

just formatting of summary for better patch visibility in ticket lists

Changed 15 years ago by termim@…

Attachment: macros.py.2.diff added

Modify to work with current trunk (rev.9715)

comment:2 Changed 15 years ago by termim@…

Priority: normalhigh
Severity: normalcritical
Summary: [patch] support multirepository branch[patch] support Trac 0.12 (multirepository)

comment:3 Changed 14 years ago by benjamin@…

Trac Release: 0.110.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!

Last edited 5 years ago by Ryan J Ollos (previous) (diff)

Changed 14 years ago by termim@…

Attachment: 0.12.diff added

Modify to work with Trac-012.1

comment:4 Changed 14 years ago by Étienne BERSAC

I confirm the batch works well on 0.12.2.

comment:5 Changed 13 years ago by wimpunk@…

Tested on 0.12.2 and works correctly.

Changed 13 years ago by David Fraser

Attachment: includemacro-4162-0.12.diff added

Updated patch that works with includemacro r112266 and trac 0.12

comment:6 Changed 13 years ago by Ryan J Ollos

#3910 closed as a duplicate.

comment:7 Changed 13 years ago by Ryan J Ollos

Owner: changed from Noah Kantrowitz to Ryan J Ollos
Status: newassigned

comment:8 Changed 13 years ago by Ryan J Ollos

(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 13 years ago by Ryan J Ollos

Cc: Steffen Hoffmann added; anonymous removed
Severity: criticalblocker

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 13 years ago by Ryan J Ollos

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

comment:11 Changed 13 years ago by Ryan J Ollos

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

comment:12 Changed 13 years ago by Ryan J Ollos

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

comment:13 Changed 13 years ago by Ryan J Ollos

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

comment:14 Changed 13 years ago by Ryan J Ollos

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

comment:15 Changed 11 years ago by Ryan J Ollos

Status: assignednew

comment:16 Changed 11 years ago by Ryan J Ollos

Status: newassigned

comment:17 Changed 5 years ago by Ryan J Ollos

Description: modified (diff)
Resolution: fixed
Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.