Question

As far as I could see, there is no built-in feature to manage SVN hooks in SVN itself. There are some ideas of course, such as another repository with hooks scripts, running an svn export to the hooks directory on commit, but how would you do it?

Was it helpful?

Solution

I've got hooks managed by SVN in one of my repositories. This is not the same repository though; I've created second SVN repository to hold hooks for the first one. I was worried about breaking access to the main repo with a faulty commit.

OTHER TIPS

I think there is nothing wrong with making the hooks directory a subversion checkout. So after committing the hook, you merely have to svn up in the hooks directory, as the post-commit action.

I think it should also work to make the hooks directory a checkout of the very repository it is managing.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top