On Oct 19, 2006, at 10:37, Tremal Naik wrote:
> I have many users who are allowed to add projects to the repository.
> This means that errors are possible and that those users may import
> projects in the wrong way.
>
> I would like to filter the files the users can import. Let's say user
> A has a source tree in his hard drive which contains *.java and
> *.class files, I would let him importing only the former, filtering
> the latter.
>
> The option global-ignores in the config file won't do the job. Is
> there a possible configuration or should I use a hook script?
You can write a pre-commit hook which examines the names of the files
in the incoming transaction and rejects the commit if it contains
anything you don't want, printing an error message to the user
explaining to them what they did wrong so they can try again. There
are many examples of similar scripts in the mailing list archives at
http://svn.haxx.se/users/ .
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 19 19:17:50 2006