Developing a new git version control back-end

5 views
Skip to first unread message

Pete Woods

unread,
Oct 20, 2009, 8:19:06 AM10/20/09
to Trac Development
Hi,

I'm attempting to implement a faster Git back-end for Trac than the
ones currently available.

My work so-far is located here:
http://gitorious.org/git-plugin

It's not really finished yet, but some basic repo browsing with
history, etc is starting to function properly.

I'm having trouble getting the timeline view to appear, though.

I get the following error when I try and open it:
13:13:00 Trac[main] WARNING: HTTPInternalError: 500 Trac Error (Genshi
UnicodeDecodeError error while rendering template (unknown template
location))

Really struggling to track down what could be causing this error!

Any advice would be most welcome.

Also if anyone wants simply to help with development of this thing
they're also very welcome!

Cheers,
Pete

Pete Woods

unread,
Oct 21, 2009, 6:46:06 AM10/21/09
to Trac Development
I've fixed that problem now. It was to do with not converting git
author names to unicode.

Seems like the plug-in mostly works now :)

Christian Boos

unread,
Oct 21, 2009, 7:37:25 AM10/21/09
to trac...@googlegroups.com
Pete Woods wrote:
> Hi,
>
> I'm attempting to implement a faster Git back-end for Trac than the
> ones currently available.
>
> My work so-far is located here:
> http://gitorious.org/git-plugin
>
>

Looks like you've started from hvr's plugin on Trac Hacks.
Would you mind describing how your approach is (or going to be) different?

-- Christian

>
>
>

Pete Woods

unread,
Oct 21, 2009, 11:44:52 AM10/21/09
to Trac Development
Mainly, I'm using Dulwich (http://samba.org/~jelmer/dulwich/) for a
pure Python implementation. Well there are bits of Dulwich with C
implementations, but I think that's normal, right -- I'm new to
Python.

As I'm taking a few bits of hvr's plug-in for the places I've not had
time to do in pure Python yet I felt it fairer to branch his plug-in
instead of starting my own "from scratch". The idea will be, though,
that the git_fs module will be removed once I'm done. That should be
pretty soon actually.

The interesting work is all on the "dulwich" branch.

Once I've got it working I'm going to focus on making operations like
walking the commit history for changes as fast as possible using the
sha's to speed things up, for example.

I need it to get faster for use at work, so hopefully I can make some
progress in this area.

-Pete
Reply all
Reply to author
Forward
0 new messages