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

Re: Wanted: pre-commit hook to prevent commits to externals definition

From: Daniel Becroft <djcbecroft_at_gmail.com>
Date: Fri, 4 Jun 2010 09:34:06 +1000

On Fri, Jun 4, 2010 at 12:12 AM, David Aldrich <David.Aldrich_at_eu.nec.com>wrote:

> Hi
> 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.
> Best regards
> David

I don't have an example of such a script. *But*, I'm not sure if even such a
script could be possible. My understanding of committing w/ externals, is
that the modifications to the externals are committed separately (or even
excluded) from the main commit. This would certainly be the case for
externals pointing to a separate repository, and may be the case .

I just did a quick test (with both intra- and inter-repository external
definitions), and SVN does not seem to descend into the externals for a
commit. The externals directory has to be explicitly committed, which makes
it no different from a normal working copy.

Received on 2010-06-04 01:35:09 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.