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?
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 ).
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With