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

Re: Versioning hook scripts

From: Ron Wilson <ronw.mrmx_at_gmail.com>
Date: Mon, 11 Feb 2008 17:30:31 -0500

On 2/11/08, Jean-Marc van Leerdam <j.m.van.leerdam_at_gmail.com> wrote:
> is it OK to version the (server side) hook scripts of a repository
> in the repository itself?
>
> Can the hooks folder be a working copy (check out of a .../hooks folder
> somewhere on a branch or trunk of the repo itself)?

I would think that this would work fine, unless you try to have it
auto-update itself.

> And will that also work when you have a post-commit hook that updates this
> WC...?

I can see 2 possible problems:

1. What if 2 or more post-commits are trying to update the same WC at
the same time?

2. If your SVN server is running under windows, or your hook script is
an actual program (example: post-commit.exe), then the file containing
the script or program might be open when the SVN update is taking
place. In that case, the update will fail to update the running
script.

You probably should ask this over at the SVN list. they will know much better.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-02-11 23:30:40 CET

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

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