subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Becroft <djcbecr...@gmail.com>
Subject Re: Wanted: pre-commit hook to prevent commits to externals definition
Date Mon, 07 Jun 2010 10:19:10 GMT
On Mon, Jun 7, 2010 at 6:52 PM, Lorenz <lorenznl@yahoo.com> wrote:
> David Aldrich wrote:
>>Please can anyone point me to an example of a svn pre-commit hook that prevents commits
>>to files that are members of an externals definition?
>>
>>We want to allow such files to be committed only from within the external directory,
i.e. where
>>they originate from.
>
> As long as the externals are pointing to the same repository it should
> be possible to examine the transaction and determine if any of the
> changed paths is related to an external definition (external
> properties can be extracted from the transaction too).

Really? From my testing, it seemed that SVN doesn't descend into
externals during a commit, regardless of whether the external points
to the same or a different repository.

Have you seen different behaviour?

Cheers,
Daniel B.

Mime
View raw message