Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN log parsing tool

Tags:

svn

SVN records which files were change in each commit. But I want to know what functions were changed in each commit.

Ideally, I'd like to provide a method that gets called with each diff and then can save off which methods were changed in that commit.

Does such a tool or api exist?

like image 280
Xodarap Avatar asked May 12 '13 13:05

Xodarap


People also ask

How to use svn log?

Simply invoke svn log with the --diff option to trigger this output mode. As with svn diff, you may also make use of many of the various options which control the way the difference is generated, including --depth , --diff-cmd , and --extensions ( -x ).

How check svn commit history?

To find information about the history of a file or directory, use the svn log command. svn log will provide you with a record of who made changes to a file or directory, at what revision it changed, the time and date of that revision, and, if it was provided, the log message that accompanied the commit.

Where are svn logs stored?

If you are running SVN over Apache (HTTP or HTTPS), you will want to look at Apache's log. By default going to be in /var/log/httpd . The red book has some good information on it.


1 Answers

SVN knows nothing about your programming language; so it can only show you the textual differences between files using e.g. svn diff.

But some IDE's know more of your language of choise, and e.g. Eclipse has a brillant "compare editor" that can highlight the differences between two files versions.

If you need something that works from the command line, and for which the output can be used in the logic of scripts, etc. - we need to know more about your programming language and requirements.

like image 186
tbsalling Avatar answered Oct 03 '22 00:10

tbsalling