Modify

Opened 4 years ago

Last modified 4 years ago

#6816 reopened defect

[Patch] In 0.12 branch, use RepositoryManager.getrepository(self.env) rather than self.env.get_repository()

Reported by: jasminlapalme@… Owned by: eblot
Priority: normal Component: RevtreePlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

In trac 0.12 self.env.get_repository have change a little bit. We must use self.env.get_repository(authname=authname).

I made a patch to make it work.

Attachments (2)

get_repository_r7780.patch (1.0 KB) - added by jasminlapalme@… 4 years ago.
TracRevTree-0.12-get_repository.patch (2.0 KB) - added by anonymous 4 years ago.
TracRevTree 0.12 get_repository_patch

Download all attachments as: .zip

Change History (6)

Changed 4 years ago by jasminlapalme@…

Changed 4 years ago by anonymous

TracRevTree 0.12 get_repository_patch

comment:1 Changed 4 years ago by anonymous

All Repository request should use RepositoryManager as described in http://trac.edgewall.org/wiki/TracDev/ApiChanges/0.12

Here is the patch that make it work with 0.12 stable

comment:2 Changed 4 years ago by rjollos

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [8057].

comment:3 Changed 4 years ago by rjollos

  • Resolution fixed deleted
  • Status changed from closed to reopened

On second look, the change suggest in comment:2 should probably be made per the suggestion on the Trac API Changes for 0.12 page.

comment:4 Changed 4 years ago by rjollos

  • Summary changed from [patch] self.env.get_repository(authname) with trac 0.12 dev to [Patch] In 0.12 branch, use RepositoryManager.getrepository(self.env) rather than self.env.get_repository()

Add Comment

Modify Ticket

Action
as reopened .
Author


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

 
Note: See TracTickets for help on using tickets.