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

Re: Enforcing Line Ending on the Server

From: Bryan Donlan <bdonlan_at_gmail.com>
Date: 2004-07-26 01:34:37 CEST

On Sun, 25 Jul 2004 16:28:27 -0700, Curtis Spencer <thorin@gmail.com> wrote:
> After doing some reading about the line endings issue, it seems like
> the solution involves changing the client side config in
> $HOME/.subversion/config to contain svn:eol-style entries for all the
> files. However, this seems cumbersome in that I would have to teach
> every new developer coming onto my project about this convention. Is
> there a way to ensure that the server will take care of this,
> realizing that a windows client is connecting and switching the EOL to
> CRLF and likewise doing the same for a UNIX client. If not, it seems
> one new windows user could wreak havoc on the line endings if they
> just begin using the repository.
> Any ideas?

Set svn:eol-style to native on all text files. The autoprops in
$HOME/.subversion/config are just a convenience to set a property when
a file is added - once it's in the repo they are irrelevant. If a new
text file is added without svn:eol-style, you can set svn:eol-style

See http://svnbook.red-bean.com/svnbook/ch07s02.html#svn-ch-7-sect-2.3.5
for more details on svn:eol-style.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jul 26 01:35:05 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.