You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by David Weintraub <qa...@gmail.com> on 2009/03/01 16:28:43 UTC

Re: svn:ignore pattern question

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 <mi...@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@subversion.tigris.org
>> From: subversion-2009a@ryandesign.com
>> Subject: Re: svn:ignore pattern question
>> Date: Thu, 26 Feb 2009 20:35:37 -0600
>> To: mimi_huhu@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
qazwart@gmail.com

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1251154

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].