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

Re: filtered files

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-11-09 18:57:13 CET

On Nov 9, 2005, at 16:57, David Legardinier wrote:

> How can i filter files extensions in a commit?
> is it possible with hooks?

In a pre-commit hook, you can examine the transaction with svnlook to
get a list of all files affected by the commit. Then you can look at
the file extensions, and do whatever you want. I don't know what you
mean by "filter", but if you mean, for example, that you want to
prevent people from committing, say, .exe files, then you can look at
the list of affected files, and if it contains .exe, output an error
message and prevent the commit from occurring. If by "filter" you
mean that you want to modify the files before they're put into the
repository, then no, you cannot do that, and should not do that. This
is a Subversion design decision.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Nov 9 18:59:13 2005

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.