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

Re: Administration and svn:ignore

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2003-10-11 23:31:10 CEST

"Kris Goss" <kris@seedindustries.com> writes:

> Hi, I'm trying to understand if I can apply the svn:ignore property
> as an administrator over a repository in order to prevent any user
> from submitting invalid file types. Is there a way to enforce this
> across an entire folder like 'src\' in my repository as the admin?

Not by using svn:ignore. Svn:ignore is used to prevent recursive
operations from picking up certain patterns, but it can always be
overridden if a user really wants to add that file.

You're better off writing a pre-commit-hook that runs 'svnlook changed
${1} --transaction ${2}' (where $1 and $2 are, as noted in the
pre-commit-hook.tmpl, the repository path and transaction,
respectively), and search in the output for regular expressions like
'/src/.*\.jpg' (or whatever type of file you deem invalid).

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Oct 11 23:32:19 2003

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.