[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: 'svn blame' speedup in 1.2

From: Daniel Berlin <dberlin_at_dberlin.org>
Date: 2005-03-29 00:01:35 CEST

On Sat, 2005-03-26 at 22:42 +0000, Philip Martin wrote:
> Daniel Berlin <dberlin@dberlin.org> writes:
> > Theoretically, one should be able to use the libsvn_diff API, which
> > tells you "lines from start to end in original were modified to become
> > lines start to end in new file", and produce the explicit adds and
> > deletes from that, but i haven't been able to get it to work right.
> >
> > In fact, diff -n is more or less doing this in order to produce the info
> > it gives us. So we should be able to do it too :).
> I'm not quite sure what you need, or what you can't get to work.
> The patch below is a quick hack that overides the current diff output
> vtable, so it's not suitable for the repository. Diff clients, like
> the test program 'subversion/tests/libsvn_diff/diff-test', will output
> approximate 'diff -n' output (the patch reuses the unified code so
> each line representing an added line has a leading space).
> Subversion and GNU sometimes choose different sequences to convert one
> file into another so their outputs don't always match but they should
> effect the same transformation.

I've got a variant of this code working and doing the right thing for
our blame handler.

So we are now in somewhat good shape.
I should have a nice cleaned up patch in a day.

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 29 00:03:25 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.