tags:

views:

76

answers:

4

I have a problem that someone introduced a bug but I do not know the subversion commit that introduced this bug. I am looking for something like the nice git feature bisect for svn.

Does anyone know scripts like e.g. python to simulate this feature?

A: 

I believe that is what blame is for

dferraro
+3  A: 

svn blame might help you. GUI interfaces provide a nice-looking "implementation" of this:

TSVN Blame

Anton Gogolev
this is not quite what i am looking for because I do know neiter the source file nor do i recognize the faulty lines that will lead to the bug. I like to test the finished build and get a good or bad then continue with the next bisec interval/half.
schoetbi
A: 
svn blame svn://svn.example.org/repos/project/trunk/hello.c

This will give you output like:

12          steve #include <stdio.h>
10           greg
10           greg int
10           greg main (int argc, char *argv)
10           greg {
11         robert printf ("hello world \n");
10           greg return 0;
10           greg }

which shows revision numbers and the username of the person who last committed changes to that line

Dolbz
+5  A: 

svn does not have a bisect-like feature built in. There appears to be a perl script available to do it. Blame does not do the same thing as bisect; it is equivalent to git/hg annotate.

jk