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

Re: Copying hooks automatically upon repository creation

From: Andy Levy <andy.levy_at_gmail.com>
Date: Mon, 4 Oct 2010 14:40:03 -0400

On Mon, Oct 4, 2010 at 13:51, Tech Geek <techgeek12345_at_gmail.com> wrote:
> We use one repository per project. All repository lives in /var/lib/svn/.
>
> Also we use the hooks post-commit and pre-commit for every repository. Right
> now we have to manually copy these two hooks whenever a new repository is
> created.
> For example:
> cd /var/lib/svn/
> cp /path-to-my-hooks/* projectA/hooks
> cp /path-to-my-hooks/* projectB/hooks
> cp /path-to-my-hooks/* projectC/hooks
>
> Is there any way to automate this process?
>

Write a script to automate your repository creation process, and
include copying hooks in that script.
Received on 2010-10-04 20:41:23 CEST

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.