svn - getting line modification statistics

2.6k Views Asked by At

I'm trying to get a report going which shows the individual diff-stats per commit (ie. lines added, modified and deleted). CVS had this.

Is there a way to get this from SVN?

I've tried:

svn log --xml -v -r HEAD:234234

But it only shows commit comments, and the files that were added, modified and deleted. I need lines added, modified, and deleted.

How does a tool like StatSVN get this kind of information to present this kind of report?

I'd like to use a tool, but can't (for reasons I beyond my control).

2

There are 2 best solutions below

0
On BEST ANSWER

I believe you'll have to fetch the diffs (with svn diff) and count the lines yourself (that's what StatSVN does: obviously, it calculates the counts once for each commit and then saves it so that it doesn't have to calculate it over and over).

0
On

Don't know how to do it with svn itself we use svn plot for this over here. These graph are not very detailed but give a good picture.