开发者

Add comment to subversion commit automatically

I've already got my subversion repository set u开发者_运维技巧p 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 REV in your prepost-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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜