I want to stop developers from committing unless they reference a ticket in the message field of their SVN commit. for example, it should read something like "see ticket #999 - (description of change)" and if they don't have that formatting, it will stop the commit. Is this possible with a hook and if so, how would I code that?
Asked
Active
Viewed 129 times
1
-
4I don't want to sound mean, but have you tried searching the web for "Subversion Pre-Commit Hook"? This sort of requirement is a _common_ use for hook scripts. – cdeszaq Mar 05 '12 at 22:20
-
I have done some searching for it but haven't been able to find what I need. – user1250905 Mar 06 '12 at 19:56
-
Then you may want to update your post linking to what you _have_ been able to find and explain _why_ it doesn't meet your needs. If you are hoping to receive help from Stack Overflow, the best way is to show that you have tried to solve the problem on your own and are stuck. Simply asking for help without showing what you have tried a.) Looks like you are just looking for someone else to solve your problems and b.) Doesn't give any potential helpers anywhere to start from. – cdeszaq Mar 06 '12 at 20:11
-
check this question http://stackoverflow.com/questions/10381572/getting-log-message-from-svnlook-via-windows-batch/10456333#10456333 – Kalpesh Soni May 04 '12 at 21:26