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

Thanks anonymous January 7 2009, 04:18:02 UTC
Thanks a lot. I found it after an hour of head bashing though. :) Thank you.

Reply


Thanks a lot anonymous January 15 2009, 20:27:02 UTC
It's seems to work and it really saved me a lot of time.

Thanks once again, it was really helpful

Reply


gdy February 10 2009, 14:32:31 UTC
Thanks! Google had found exactly what I wanted when I asked for "pre-revprop-change.bat" ;-)

Reply


Thanks anonymous March 27 2009, 10:41:57 UTC
I was looking for a solution to adding comments and this works lovely.
I don't suppose anyone would know if it is possible to automate the process of adding this .bat when a new repository is created would they?

Reply


Possible bug anonymous July 21 2009, 19:44:38 UTC
I think there's a bug in this otherwise very helpful batch file.

The test to make sure that the new svn:log message is not empty does not appear to work. It tests the last parameter on the command line. But the log message is not passed to the batch file as a parameter. It is passed via STDIN. This is documented in the pre-revprop-change template that comes with Subversion (version 1.6.3 (r38063). I'm running XP Pro SP 2 on both my PC and the Subversion repository PC.

Unfortunately, I have not been able to find a way to test whether STDIN is empty in this batch file. Does anyone else know how to do this?

Reply


Leave a comment

Up