[REQUEST] bzr-webserve: ability to branch from webserve plugin's http server
Goffredo Baroncelli
kreijack at alice.it
Mon May 22 19:18:10 BST 2006
On Saturday 20 May 2006 04:04, you (John Dong) wrote:
> On 5/19/06, Michael Ellerman <michael at ellerman.id.au> wrote:
> >
> >
> > 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.
> >
> >
> Yeah; that's a temporary workaround until webserve handles both aspects of
> operation... It's simple and gets the job done, but is not as configurable
> or streamlined as webserve would be if it handles .bzr/.
>
I wrote a little patch in order to add the option "--fileserver" to the
webserve plugin. So now it can handle your request.
Only two note:
1) the webserve can handle only a request x time
2) it not possible to restrict the user who can access to the repository
3) path with ".." are considered invalid
In order to permit the webserve to provide a file, you have to use
the "--fileserver" switch
user at server $ bzr webserve --help
usage: bzr webserve [NAME] [ROOTREPOSITORY]
Start the webserver
options:
--acceslog ARG
--address ARG
--errorlog ARG
--fileserver
--help, -h show help message
--ipv6
--lock
--port ARG
--profile
--style ARG
--tararchive
--templates ARG
user at server $ bzr webserve --fileserver # start the server
otheruser at client $ bzr branch http://server:8088/path-which-you-want
Note:
<path-which-you-want> is only used to decide the destination directory, you
can omit, in this case the destination directory is something
like "server:8088"
Comments are welcome.
Goffredo
---
The change can be viwed at
http://goffredo-baroncelli.homelinux.net/bazaar/bazaar-webserve?cmd=diff;otherrevid=ghigo%40venice-20060517230447-18205df8881b7b50;rev=ghigo%40venice-20060522180948-9bc93084ae165004;pathrevid=;path=
The changes can be pulled at
http://goffredo-baroncelli.homelinux.net/bazaar/bazaar-webserve
Attached the diff
--
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijack at inwind.it>
Key fingerprint = CE3C 7E01 6782 30A3 5B87 87C0 BB86 505C 6B2A CFF9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff
Type: text/x-diff
Size: 4785 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060522/5b18ccca/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060522/5b18ccca/attachment.pgp
More information about the bazaar
mailing list