Reputation: 11849
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?
Upvotes: 7
Views: 909
Reputation: 53
You can probably use the svn hook post-commit script to modify the log of the version you are updating and add the result of the command svn diff.
In this chapter from the SVN book they talk about this scripts. Here you can find an example that sends the diff by email.
Upvotes: 1
Reputation: 4545
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.
Upvotes: 4