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

Re: why does SVN get confused about my EOL character?

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: 2007-05-03 21:06:23 CEST

On 5/3/2007 2:55 PM, Richard wrote:
> Doesn't SVN handle EOL conversion like CVS does?
>
> I never had this problem in CVS, but since switching to SVN, when I
> commit files on a unix box and load the file on a Windows box, Visual
> Studio complains about inconsistent line endings.
>
> When I add a file on Windows and update on unix, vi shows the file to
> have DOS EOL conventions.
>
> Why isn't SVN handling this properly and what can I do about it?

SVN won't modify the file unless you ask it to. Presumably you haven't
done that.

You sound like you want svn:eol-style set to native. This will
translate eol markers to Unix style in the repository, and native style
in working copies. There are problems with this approach (as with CVS);
see the archives for lots of discussion. Some people (including me)
prefer to set up their Windows tools to use Unix-style eols instead, and
leave svn out of it.

Duncan Murdoch

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 3 21:05:53 2007

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.