Edgewall Software
Modify

Ticket #7920 (closed enhancement: wontfix)

Opened 20 months ago

Last modified 17 months ago

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:

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

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

Change History

Changed 20 months ago by alien.technology@…

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

comment:1 in reply to: ↑ description Changed 20 months ago by alien.technology@…

comment:2 Changed 17 months ago by cboos

  • Status changed from new to closed
  • Resolution set to wontfix
  • Milestone 0.12 deleted

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.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from (none). Next status will be 'closed'
Author


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

 
Note: See TracTickets for help on using tickets.