Another small batch file hook for those running subversion on windows. This hook will allow users to update a log message on the old check-in.
Note: Property changes are not versioned, so you will permanently loose the old message.
Place this in a pre-revprop-change.cmd
-------------
IF %5 EQU M GOTO CONT1
GOTO FAIL
:CONT1
IF %4 EQU svn:log GOTO OK
:FAIL
echo "Changing revision properties other than svn:log is prohibited" >&2
exit 1
:OK
exit 0
------------
Thank you for posting this!!!
ReplyDeleteHard to find windows solution when you are in a hurry :)
This came in real handy. Thanks for posting.
ReplyDeleteThanks for posting this.
ReplyDeleteThanks soooooo much! Although one comment sticks to multiple files committed in one version, this was great to allow me to generalize the comment. (I'm a stickler on checkin comments)
ReplyDeleteThanks for preserving my sanity! :)
------------
ReplyDeleterem Only allow log messages to be changed.
if "%4" == "svn:log" exit 0
echo Property '%4' cannot be changed >&2
exit 1
------------
this one works too.
make this .bat file and put your repository.
if you need to change "user" just make
"svn:log" to "svn:author"
Thanks! really!
ReplyDelete