Ant svntask getting revision message
I am using ant with svntask to update the repository before I create the application. At the end of the build, a message is displayed with the build results. It would be very helpful to include the version number and svn message in this email, so if the build breaks, we know which revision will be reviewed.
Currently only the version number is displayed:
<status path="${main.site}" revisionProperty="sqlUpdateStatus.revision"/>
But I don't know how (or if there is a way) to get this revision message (the message entered by the committer). Do you guys know how to do this?
source to share
I don't think there is a built-in way to get the commit message, but you can pull it manually from svn with the following command:
svnlook log -r X /path/to/repo
This will return the log message for revision X for the repository at / path / to / repo. You can wrap this in an ant exec task to preform it from ant ...
+1 for Hudson - very easy to deploy and configure
source to share