Edgewall Software
Modify

Opened 11 years ago

Closed 11 years ago

#7920 closed enhancement (wontfix)

Request for addition of new method to support bitten

Reported by: alien.technology@… Owned by:
Priority: normal Milestone:
Component: version control Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:

Description

Background to this ticket is, I've been looking at using multirepos support with Bitten.

It would be useful to have a get_repository_by_path method on the Trac Environment object to support automated building in a multi-repository environment. Patch attached, and I'll be submitting a corresponding patch on a Bitten ticket.

Attachments (1)

trac-multirepos-r7684.patch (684 bytes ) - added by alien.technology@… 11 years ago.
Patch on the sandbox/multirepos branch, revision r7684, adds the Environment.get_repository_by_path method

Download all attachments as: .zip

Change History (3)

by alien.technology@…, 11 years ago

Attachment: trac-multirepos-r7684.patch added

Patch on the sandbox/multirepos branch, revision r7684, adds the Environment.get_repository_by_path method

comment:2 by Christian Boos, 11 years ago

Milestone: 0.12
Resolution: wontfix
Status: newclosed

Well, I'm against the proliferation of one-liner methods (read: this is not Java!). You could directly call:

  RepositoryManager(self.env).get_repository_by_path(path, authname)

from Bitten.

Granted, there are other one-liners there (get_repository(), get_all_repositories()), but those are used a lot within Trac itself, so the trade-off looks better in their case.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to as closed The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.