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 Aldrich <Da...@EU.NEC.COM> on 2010/03/26 11:39:03 UTC

Auto-props - can I override the config file?

Hi

Our svn config file contains the line:

*.v = svn:eol-style=native;svn:keywords=Date Author Id Revision HeadURL

This assumes that .v files are Verilog text files.  However, one of our developers has a third party encrypted .v file that he wants to add. The file is binary because it is encrypted. This causes a conflict with the eol-style auto-prop and he gets error:

"myfile.v has binary mime type property"

and the commit fails.

My question is, can I set properties on the file's parent folder to override the auto-prop settings in the config file for *.v files, such that the eol-style will not be applied to *.v files added to that folder?

Or can I set properties on the file prior to committing it, in such a way that the auto-props will be ignored?

Best regards

David




RE: Auto-props - can I override the config file?

Posted by David Aldrich <Da...@EU.NEC.COM>.
Hi Andy

Thanks for your quick reply.

> The later. Auto-props are applied when you run svn add, so after the
> developer has added his encrypted file, he can edit the properties &
> make them right.

Actually, my previous post was incorrect - the error occurs upon add not commit:

C:\>svn add myfile.v
svn: File 'myfile.v' has binary mime type property

But I have found switch --no-auto-props, which solves the problem:

C:\>svn add --no-auto-props myfile.v
A  (bin)  myfile.v

Thanks for your help,

David

Re: Auto-props - can I override the config file?

Posted by Andy Levy <an...@gmail.com>.
On Fri, Mar 26, 2010 at 07:39, David Aldrich <Da...@eu.nec.com> wrote:
> Hi
>
> Our svn config file contains the line:
>
> *.v = svn:eol-style=native;svn:keywords=Date Author Id Revision HeadURL
>
> This assumes that .v files are Verilog text files.  However, one of our
> developers has a third party encrypted .v file that he wants to add. The
> file is binary because it is encrypted. This causes a conflict with the
> eol-style auto-prop and he gets error:
>
> “myfile.v has binary mime type property”
>
> and the commit fails.
>
> My question is, can I set properties on the file’s parent folder to override
> the auto-prop settings in the config file for *.v files, such that the
> eol-style will not be applied to *.v files added to that folder?
>
> Or can I set properties on the file prior to committing it, in such a way
> that the auto-props will be ignored?

The later. Auto-props are applied when you run svn add, so after the
developer has added his encrypted file, he can edit the properties &
make them right.

Or, remove this line from that developer's auto-props entirely.