Geeks With Blogs
An educated guess (Timur Fanshteyn) Technology, Software Development and other ways to make an educated guess about the world...

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
------------

 

Technorati Tags: , ,



Cross-posted from http://blog.tfanshteyn.com/2007/12/subversion-pre-revprop-change-hook.html

Posted on Wednesday, December 5, 2007 4:52 PM | Back to top


Comments on this post: Subversion pre-revprop-change hook

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Timur Fanshteyn | Powered by: GeeksWithBlogs.net