You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by John Wright <jo...@dealchecker.co.uk> on 2008/05/30 12:10:06 UTC

Line-ending conversion magic?

Hi,

 From what I've read, SVN doesn't automatically do line-ending 
conversion - you have to set a property on each file you check in (or 
use auto-props).

Our dev machines are Windows, and when checking out files on a Ubuntu 
box the line endings are all CRLF. This was a big surprise, because on 
our Red Hat box the line endings seem to be magically converted to LF! 
The ~/.subversion/config file on the Red Hat box is all commented out 
and /etc/subversion/config doesn't exist, so what's doing this? How can 
we get this magical behaviour working on our Ubuntu box? :)

Thanks,
John Wright

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Line-ending conversion magic?

Posted by Ryan Schmidt <su...@ryandesign.com>.
Right, there is no magic. Subversion performs line-ending translation  
on the client side for files on which you've set the svn:eol-style  
property (either manually or via auto-props), and doesn't for those  
files where you haven't.


On May 30, 2008, at 09:19, John Wright wrote:

> Sorry about that, it turns out there's no 'magic' and no LFs. D'oh!
>
>
> John Wright wrote:
>
>> From what I've read, SVN doesn't automatically do line-ending  
>> conversion - you have to set a property on each file you check in  
>> (or use auto-props).
>>
>> Our dev machines are Windows, and when checking out files on a  
>> Ubuntu box the line endings are all CRLF. This was a big surprise,  
>> because on our Red Hat box the line endings seem to be magically  
>> converted to LF! The ~/.subversion/config file on the Red Hat box  
>> is all commented out and /etc/subversion/config doesn't exist, so  
>> what's doing this? How can we get this magical behaviour working  
>> on our Ubuntu box? :)



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Line-ending conversion magic?

Posted by John Wright <jo...@dealchecker.co.uk>.
Sorry about that, it turns out there's no 'magic' and no LFs. D'oh!


John Wright wrote:
> Hi,
>
> From what I've read, SVN doesn't automatically do line-ending 
> conversion - you have to set a property on each file you check in (or 
> use auto-props).
>
> Our dev machines are Windows, and when checking out files on a Ubuntu 
> box the line endings are all CRLF. This was a big surprise, because on 
> our Red Hat box the line endings seem to be magically converted to LF! 
> The ~/.subversion/config file on the Red Hat box is all commented out 
> and /etc/subversion/config doesn't exist, so what's doing this? How 
> can we get this magical behaviour working on our Ubuntu box? :)
>
> Thanks,
> John Wright
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org