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

Re: add hooks to repo

From: Johan Corveleyn <jcorvel_at_gmail.com>
Date: Fri, 19 Jun 2015 09:15:48 +0200

On Fri, Jun 19, 2015 at 12:00 AM, Andreas Stieger
<andreas.stieger_at_gmx.de> wrote:
> Hello,
>
> On 18/06/15 20:26, Bill McCormick wrote:
>> I have an existing repository and I'd like to be able to rev control
>> hooks for the repo ... in the repo. Is there an easy way to do this?
>
> No. Hooks live in the on-disk repository tree, not inside the versioned
> file system. There is no specific feature to support this. An advanced
> method would be hook wrappers that co/up/cat versioned code from the
> repository, but there are several problems with that: crossing a
> security boundary, self-lock-out and concurrency issues.

I would recommend to maintain the hook scripts in a separate (small)
repository. You can then make the $MAINREPO/hooks directory a working
copy of the $HOOKSREPO/trunk or of $HOOKSREPO/branches/mainrepo. That
way you can version control your hooks, maybe maintain hooks in
different variations for different "main repositories", plus it's easy
to control access to the hooks (only for svn administrators or
sysadmins or ... -- you can also configure it so that the $HOOKSREPO
is only accessible via file:/// urls from the server itself if so
desired).

-- 
Johan
Received on 2015-06-19 09:16:20 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.