I have added some pre commit hooks to my SVN repos that check that people are putting a JIRA item against every commit. This works fine.
However looking at the svn logs it would be nice to have the summary shown in the commit message otherwise it's just a bunch of numbers and you have to refer back to JIRA all the time to see what's going on.
I therefore thought that rather than requiring people to put the summary in each time I could parse the commit message and tack the summary on as necessary. I can achieve this but I am not about two things
- How can I change the commit message for a transaction in the hook?
- There are big warnings in the SVN docs about altering transactions during pre-commit hooks. Does this apply to just changing the commit message?