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

Re: Idea for dealing with text-file line endings

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-04-29 23:30:31 CEST

On Thu, 2004-04-29 at 16:09, Jim Fulton wrote:

> [auto-props]
> * = svn:eol-style=native

This is bad, bad, bad. You're basically giving the SVN client
permission to change bytes within binary files. Get ready for corrupted
binary files!

> The only alternative I see is to write a post-commit script that sets
> properties. This is what I planned to do until someone thought of this
> idea.

Instead, set a pre-commit script which examines newly added files that
match a certain set of extensions (.txt, .c, .h, .java, etc.) If
somebody forgets to set the 'native' eol property, then bounce the
commit.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Apr 29 23:34:38 2004

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.