Possible bug plus a question
Chris McCormick
chris at mccormick.cx
Sat May 7 14:31:22 BST 2005
On Tue, May 03, 2005 at 10:48:20AM +1000, Martin Pool wrote:
> On 2 May 2005, Chris McCormick <chrism at mccormick.cx> wrote:
>
> > PS Is anyone working on a web interface to bzr, or could I do this?
>
> Someone has expressed interest; maybe you can post any ideas on how it should work?
Hey,
I've knocked together a web interface which you can see here:
<http://mccormick.cx/bzrweb/>
That's on my 64k ISDN link so please don't rev it too hard.
To install it yourself, grab the patch by clicking [diff] next to
Martin's last commit in my branch (number 294) which will give you the
exact same output as `bzr diff -r 294` on my own machine. You can also
browse directly to this address:
<http://mccormick.cx/bzrweb/index.py/diff/head/294/text>
You can view diffs between arbitrary revisions by clicking the revision
number first (to make that revision 'current') and then clicking [diff]
against whichever one you want.
You need to symlink bzrweb under the bzr directory to your apache
directory. For example:
`ln -s ~/work/bzr/bzrweb/ /var/www/`
You also need to make sure that whatever user apache runs as has write
access to it's base dir (in this case www-data has write access to
/var/www/) that should be default, but I had some trouble on my own
server so I thought I'd put it here. Oh yeah and
~/work/bzr/bzrweb/index.py should be runnable by whatever apache runs
as.
Fixme/todos:
- stop it creating a .bzr.log file in /var/www/ and put that output
somewhere useful
- make a config file to allow browsing of arbitrary bzr repositories,
not just bzr's own repository
- change the bzrweb.css file to make it much prettier
- Use BaseHTTPServer if apache is unavailable so people can publish
their code anyway.
Hope this is useful to someone.
Best regards,
Chris.
-------------------
chris at mccormick.cx
http://mccormick.cx
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050507/7ad525c4/attachment.pgp
More information about the bazaar
mailing list