subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johan Corveleyn <>
Subject Re: add hooks to repo
Date Fri, 19 Jun 2015 07:15:48 GMT
On Fri, Jun 19, 2015 at 12:00 AM, Andreas Stieger
<> 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


View raw message