tags:

views:

162

answers:

2

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?

+1  A: 

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.

Martin v. Löwis
+1  A: 

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.

liori