svn pre-commit hook

It was one of those tasks that you think "i'll finish with it in a couple of hours", but i found myself dealing with it for more than 2 days...

A customer asked me to help him with a pre-commit hook that will check the existence of the svn:needs-lock property and the commit message - very simple.
We have the message check in our pre-commit hook, and I found a few examples on the net for the svn:needs-lock property check, but all examples just didn't work!
At the end i used svn contrib check-mime-type.pl, and, although i couldn't find the real differences between my previous tries written as bash script or in perl and this one, it worked.

The final hook is attached.

DevOps Architect

DevOps Group
Thank you for your interest!

We will contact you as soon as possible.

Send us a message

Oops, something went wrong
Please try again or contact us by email at info@tikalk.com