Ticket #4162 (assigned enhancement)

Opened 4 years ago

Last modified 1 year ago

[patch] support Trac 0.12 (multirepository)

Reported by: termim@gmail.com Assigned to: rjollos (accepted)
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

macros.py.diff (1.0 kB) - added by anonymous on 11/25/08 19:57:47.
macros.py.2.diff (1.0 kB) - added by termim@gmail.com on 05/17/10 16:15:39.
Modify to work with current trunk (rev.9715)
0.12.diff (1.3 kB) - added by termim@gmail.com on 11/09/10 21:43:30.
Modify to work with Trac-012.1
includemacro-4162-0.12.diff (1.1 kB) - added by davidfraser on 03/27/12 14:50:16.
Updated patch that works with includemacro r112266 and trac 0.12

Change History

11/25/08 19:57:47 changed by anonymous

  • attachment macros.py.diff added.

03/15/10 01:46:39 changed 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

05/17/10 16:15:39 changed by termim@gmail.com

  • attachment macros.py.2.diff added.

Modify to work with current trunk (rev.9715)

05/17/10 16:19:16 changed by termim@gmail.com

  • 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).

08/07/10 23:56:40 changed by benjamin@boerngen-schmidt.de

  • 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!

11/09/10 21:43:30 changed by termim@gmail.com

  • attachment 0.12.diff added.

Modify to work with Trac-012.1

02/18/11 13:41:00 changed by bersace

I confirm the batch works well on 0.12.2.

08/10/11 18:37:59 changed by wimpunk@gmail.com

Tested on 0.12.2 and works correctly.

03/27/12 14:50:16 changed by davidfraser

  • attachment includemacro-4162-0.12.diff added.

Updated patch that works with includemacro r112266 and trac 0.12

05/06/12 21:33:08 changed by rjollos

#3910 closed as a duplicate.

05/07/12 00:16:35 changed by rjollos

  • status changed from new to assigned.
  • owner changed from coderanger to rjollos.

05/07/12 00:52:36 changed 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.

05/07/12 00:57:20 changed by rjollos

  • cc set to hasienda.
  • 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?

05/07/12 01:00:02 changed by rjollos

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

05/07/12 01:03:03 changed by rjollos

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

05/07/12 01:09:31 changed by rjollos

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

05/07/12 01:10:11 changed by rjollos

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

05/08/12 16:36:27 changed by rjollos

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


Add/Change #4162 ([patch] support Trac 0.12 (multirepository))




Change Properties
Action