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

Re: svn:ignore pattern question

From: David Weintraub <qazwart_at_gmail.com>
Date: Sun, 1 Mar 2009 11:28:43 -0500

I hope you don't mind Perl...

Here's a hook script I wrote that allows you to verify that particular
file types (based upon the file name) have certain properties attached
to them. For example, you can force that the svn:eol-style on *.pl and
*.sh files must be included and set to "LF or "native". You can verify
that svn:executable is set.

You can also use this hook to prevent certain users from committing
particular files, and allow users to create tags, but not modify them.

You can download this hook from <http://dl.getdropbox.com/u/433257/hooks.zip>.

On Fri, Feb 27, 2009 at 2:46 PM, mimi huhu <mimi_huhu_at_hotmail.com> wrote:
> Might I ask what's the best way to enforce to commit certain file
> extensions?
> For example, I would like to user to commit those extensions (.sh, .pl,
> .sql, ...) only.
> I checked the link, but I did not see the syntax I might needed.
> Thanks,
>> CC: users_at_subversion.tigris.org
>> From: subversion-2009a_at_ryandesign.com
>> Subject: Re: svn:ignore pattern question
>> Date: Thu, 26 Feb 2009 20:35:37 -0600
>> To: mimi_huhu_at_hotmail.com
>> On Feb 26, 2009, at 16:24, mimi huhu wrote:
>> > Could someone direct me to a guide for svn:ignore pattern?
>> >
>> > I want to restrict commit files with extension such as (sh, pl).
>> > Could someone please tell me how to do so?
>> >
>> > shell> svn propset svn:ignore 'pattern' . --recursive
>> See the box "File Patterns in Subversion" here:
>> http://svnbook.red-bean.com/en/1.5/
>> svn.advanced.props.special.ignore.html
> ________________________________
> It’s the same Hotmail®. If by “same” you mean up to 70% faster. Get your
> account now.

David Weintraub
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-01 17:29:32 CET

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.