Windows and SVN hooks

Aug 16, 2007 10:23

If you ever need to allow edits to commit logs, all you need to do is create a pre-revprop-change hook.
Here's a simple windows hook. )

svn, work

Leave a comment

Comments 31

Seems to be working anonymous July 2 2008, 12:57:15 UTC
Hello ( ... )

Reply

Re: Seems to be working anonymous July 2 2008, 13:07:41 UTC
An addition:

I've tried to set an empty log on a revision that is already empty.
In this case the hook is called twice too, but in both the return value is 1 and the user can see "Empty svn:log messages are not allowed" error message.

Regards Tomas Bihary

Reply

Re: Seems to be working anonymous July 3 2008, 18:42:26 UTC
I guess the ">&2" parts should be replaced by "1>&2" on some win32 platforms (namely w2k3 server).

Reply

Re: Seems to be working anonymous July 3 2008, 18:44:27 UTC
For example:

:ERROR_EMPTY
echo "Empty revision properties are not allowed." 1>&2
goto ERROR_EXIT

Reply


Thanks $1,000,000.00 anonymous July 12 2008, 00:52:05 UTC
This was just what I needed

Reply


anonymous July 14 2008, 14:22:36 UTC
Big thx! It's work perfectly!

Reply


Thanks anonymous August 27 2008, 06:48:23 UTC
Thank you for this script! Works perfect! This was just what I was looking for:)

Reply


Thanks anonymous October 10 2008, 18:47:48 UTC
Saved me a LOT of head ache....

Reply


Leave a comment

Up