Web interface update

Chris McCormick chris at mccormick.cx
Mon May 9 08:03:53 BST 2005


On Mon, May 09, 2005 at 04:29:13PM +1000, Martin Pool wrote:
> On  9 May 2005, Lalo Martins <lalo at exoweb.net> wrote:
>
> You should be able to send them through patch, but that may not be
> working at the moment.

It appears to be broken. When it's working I'll update the web output
format to be the same as your official version. Probably I'll end up
just redirecting stdout into a buffer and getting the output from
cmd_diff(). I've just looked and my version of bzr.dev was out of date so
maybe this is fixed now - I'll still have to fix it in bzrweb.

> I don't think the mailing list strips attachments.  There is one on
> this message to test it.

I probably forgot to attach it.

> On the whole I think I'd rather keep bzrweb as a separate project
> rather than putting it in the bzr tree.  It should be a good test that

No problem. I've done this now.

> there is a reasonable library interface.  Chris, did you run into
> anything in the API that was unclear or missing?  I suspect at least
> some things are too slow for a web viewer at the moment.

I've sort of had to copy a bit of code from commands.py for each type of
command and change all the print statements to things that make HTML
tags, but other than that everything was available.

Viewing all revisions on one page is a bit slow, but that's to be
expected I guess. I've just updated the code so it doesn't try to list
every single revision on one page, and I've moved it to a faster server:

<http://mccormickit.com/bzrweb/>

Oh yeah and I added a config file to put in multiple bzr repositories.
Your web user now needs write access to .bzr so locking can work.

If you want to get bzrweb itself just look at:

<http://mccormickit.com/bzrweb/index.py/ls/bzrweb/6>

and download each file individually.

Best regards,

Chris.

-------------------
chris at mccormick.cx
http://mccormick.cx




More information about the bazaar mailing list