[REQUEST] bzr-webserve: ability to branch from webserve plugin's http server

Michael Ellerman michael at ellerman.id.au
Sat May 20 03:01:41 BST 2006


On Fri, 2006-05-19 at 11:56 -0400, John Dong wrote:
> Ooh, so there already is a SimpleHttpServer in the Python library that
> bzr can branch from? That should make it pretty easy for "if request
> is for .bzr/, have SimpleHttpServer hand lit" , right?

Possibly. AIUI the webserve plugin is a cgi, it doesn't have its own web
server built in, is that correct?
So to make it work in the way you're invisioning you'd need to subclass
SimpleHTTPServer in the plugin and catch requests for the html pages and
pass them through to the existing plugin code.

My point was really that you don't need to do anything bzr specific at
all, it's just a webserver. I have that python line aliased to
"webserve" in my .bashrc and use it all the time for sharing stuff with
people temporarily.

cheers

> On 5/19/06, Michael Ellerman <michael at ellerman.id.au> wrote:
>         On 5/19/06, John Dong <jdong at ubuntu.com> wrote:
>         > It'd be really convenient and awesome if you can branch from
>         a bzr
>         > webserve'd repository. I've ran into situations where a
>         couple developers 
>         > would interconnect with an ad-hoc wifi network and want to
>         be able to
>         > pull/merge/branch from each other, but have no http server.
>         This leaves the
>         > uncomfortable option of setting up temporary SSH accounts. 
>         >
>         > With this ability, each developer can just run "bzr
>         webserve", and other
>         > developers can directly branch from this server.
>         >
>         
>         Not as sexy as 'bzr webserve' etc., but ...
>         
>         source# cd path/to/branch
>         or
>         source# cd path/to/repo
>         source# python -c 'import SimpleHTTPServer;
>         SimpleHTTPServer.test()'
>         Serving HTTP on 0.0.0.0 port 8000 ...
>         ...
>         dest# bzr branch http://source:8000[/repobranch]
>         
>         cheers
> 
-- 
Michael Ellerman
IBM OzLabs

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060520/db4efa09/attachment.pgp 


More information about the bazaar mailing list