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