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

Re: Can client-side hooks run a script not in working copy?

From: Ron Wilson <ronw.mrmx_at_gmail.com>
Date: Mon, 5 Aug 2013 13:49:44 -0400

On Mon, Aug 5, 2013 at 12:15 PM, Ben Fritz <fritzophrenic_at_gmail.com> wrote:

> I am thinking about creating a pre-commit hook that EVERY user on my
> team should use. So it makes sense to me to put it into some
> repository location independent of what project is being worked on.
> But if I do this, it will probably never be in anybody's working copy.
>
> Can I specify a repository path to a file NOT in the working copy, and
> have it run as a hook script? Or do I need to stick it on a common
> network share or something like that?
>

Since all your projects are in one repository, you could create a tools
project and put the various in-house tools your team uses in there. Then
your uses would have a strong motivation to include that project in their
checkouts. of course, that means there will likely be multiple copies of
the tools on each user's PC.

Another option would be to put commands in the makefile or build script of
each project that will check for the hook scripts (or tools project) being
in the working copy and fetching them if they weren't.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3062084

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-08-05 19:50:07 CEST

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.