I’ve already got my subversion repository set up to require comments of a minimum length to accept a commit. However, I’d like to start tagging those comments with information from our bug tracking system when committed. I’ve already got the scripts set up to pull data from the bug tracker and just need a way to get that info into the subversion commit comments.
How can append to the existing comment in subversion automatically?
For reference, the subversion repository is hosted on a linux server with Ubuntu 9 something installed and I have complete root access to the machine.
This thread has some reasonable advice. Basically, you can
svn propset --revprop svn:log -r REVin yourprepost-commit hook.Update: propset takes the revision number, so I don’t understand how to do this in pre-commit. You’d need to convert TXN (the arg to pre-commit) to REV. And you may not be able to get at the log message using propset since it hasn’t actually been committed.