Ticket #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: |
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
Change History
Changed 20 months ago by alien.technology@…
- attachment trac-multirepos-r7684.patch added
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.



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