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

RE: same eol style for all text files

From: Dale Worley <dworley_at_pingtel.com>
Date: 2005-08-01 19:19:19 CEST

> From: T E Schmitz [mailto:mailreg@numerixtechnology.de]
>
> Basically, I want to make sure that no-one can commit anything but
> eol-style LF.
>
> If anyone has come up with a solution I'd be interested to
> hear about it.

First off, you can't do it automatically, because your requirement is "all
text files must have eol-style LF but binary files do not", and you have
said that you cannot differentiate your text and binary files
algorithmically.

But you can do reasonable approximations. For instance, at Pingtel, we
require all files to have an svn:mime-type property, and those for which the
value starts with "text/" are required to have an svn:eol-style property.
This is not enforced at check-in time, but rather with scripts that are run
periodically. We could easily add a test to require that all svn:eol-style
values were LF.

Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 1 19:23:49 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.