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

Re: Some questions about svn:mime-type and svn:eol-style

From: Stefan Weiss <spaceman_at_foo.at>
Date: 2005-06-09 20:43:06 CEST

Thanks for your reply.

On 2005-06-09 09:54, Greg Thomas wrote:
> No, but you could have a pre-commit hook that will reject any commits
> of text files that don't have svn:eol-style=native

Which means that all developers will have to set svn:eol-style manually
before committing added files, or use a config file that includes all
possible text file extensions.

> How you define 'text files' is up to you, but I'd suggest the easiest
> way would be by file extension of svn:mime-type.

OK. Coming back to my original questions:

*Should* I force the developers to always set mime-type and eol-style on
text files?

Will Subversion still treat a file as a text file after it has been
assigned the type "application/xml-dtd" (or other "application/" types)?

Are pre-commit hooks the only way to ensure that everybody has the
correct settings, or is there a way to share/spread these settings (per
project or per server)?

thanks,
stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 9 20:47:35 2005

This is an archived mail posted to the Subversion Users mailing list.