Expose bzr source code?
Bug #199629 reported by
Stavros Korokithakis
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Trac-Bzr |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Would it be possible to have the plugin expose the bzr tree to people who have access to view the source under a specific url, bzr/ for instance? That way, people who have this already could easily pull from the branch.
Changed in trac-bzr: | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
To post a comment you must log in.
Personally, I'd configure my web server (apache) to redirect like this:
RedirectMatch temp ^/trac- env/browser/ (.*/\.bzr/ .*)$ /bzr-repo/$1
Or, if you don't like the extra /bzr-repo tree in your URLs, you can use mod_rewrite to rewrite to a file system path:
RewriteEngine on env/browser/ (.*/\.bzr/ .*)$ /srv/bzr-repo/$1
RewriteRule ^/trac-
Both of these approaches lack the access control which trac can provide, though. On the other hand, combining that access control with the bzr command line tool might be tricky. I'll welcome patches addressing this in trac, or extending the documentation to suggest methods like those outlined above.