[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Can I have one post-commit script for all my repositories?

From: Matt imMute Sickler <immute_at_msk4.ath.cx>
Date: Tue, 11 Mar 2008 10:12:26 -0500

Dyrson Rodrigues wrote:
> I have a post-commit script running fine for one repository. I'd like to
> have it executing for all my repositories. And I do not want to copy it
> to all hooks subdirectories(and don't want do create links either).
>
> I notice the existence of a hooks directory in the root installation
> directory of subversion. I put the script in this directory expecting
> that it would run for all repos, but it doesn't.
>
> So this is my question. Is there a way to have one post-commit script
> running for all repositories?
>
> Thanks in advance.
>
> Dyrson

Of course, just put your post-commit hook in, for example,
/var/svn/hooks/standard-post-commit
Then for each repository ($REPO):
ln -s /var/svn/hooks/standard-post-commit $REPO/hooks/post-commit

Or something like this.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-11 16:53:11 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.