I need to do the following and i can only think of an svn hook solution but modifying the transaction in the hook is supposed to be bad:
We have a production repository and a test repository. I want to make sure that when someone commits to the production repository, they are sure about it and that it is not by mistake something they intended for the test repository. So I though of a pre-commit hook that denies the commit into the production repo if the commiter does not start the log message with the line "PRODUCTION", then strip the line out so that the rest of the log message remains.
Does this scenario justifies the use of the hook to modify (the log message of) the transaction? If not, in what way could this cause trouble? Can someone propose a better alternative?