News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

How to make newlines work ?

Started by afb, April 26, 2007, 10:40:54 AM

Previous topic - Next topic

afb

My editor can cope with files being all Unix (\n) or all Windows (\r\n), but it doesn't cope with the files that Subversion has with mixed line endings. It usually ends up "fixing" those, to one or the other. Usually by inserting a blank line for each \r, making it really spaced out.

Is it possible to have Subversion convert everything to Unix when I check it out, or how should I cope with this ? svn diff --extensions --ignore-eol-style works for diffs, but I'm not sure what to do otherwise. Besides avoid the ctrl-M's in the first place, any ideas ?

byo

Try
svn propset svn:eol-style native <file>

BYO