Opened 16 years ago
Closed 16 years ago
#7920 closed enhancement (wontfix)
Request for addition of new method to support bitten
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | version control | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal 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)
Change History (3)
by , 16 years ago
Attachment: | trac-multirepos-r7684.patch added |
---|
comment:2 by , 16 years ago
Milestone: | 0.12 |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
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