Expose bzr source code?

Bug #199629 reported by Stavros Korokithakis
2
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
Revision history for this message
Martin von Gagern (gagern) wrote :

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
RewriteRule ^/trac-env/browser/(.*/\.bzr/.*)$ /srv/bzr-repo/$1

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.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

It would be nice to expose the smart server over http, which should result in significantly better performance (and less roundtrips) than access over plain HTTP.

Revision history for this message
Martin von Gagern (gagern) wrote :

http://doc.bazaar.canonical.com/beta/en/user-guide/server.html sounds like a smart server over http still isn't an option. Has this changed? If so, where do I find instructions about setting up a smart server for operation over http? Or in other words, where in bzrlib are the entry points to run such a server?

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

The smart server over http has been an option for a long time. That page doesn't explicitly mention it (which I admit is a bit annoying), but you can enable it using the --http option to "bzr serve" if you have loggerhead installed, or you can hook it into apache - how to do so is in the documentation somewhere as well.

IIRC the main code for this is in ./bzrlib/transport/http/wsgi.py.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.