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

Re: Managing linefeeds from clients operating on different platforms

From: Patrick Burleson <pburleson_at_gmail.com>
Date: 2005-04-26 02:46:45 CEST

On 4/25/05, Carl Youngblood <carlwork@gmail.com> wrote:
> Hello,
>
> I have been developing a web application from a number of different
> machines: a windows box, a linux box and a mac. I noticed that some
> of the files I created on windows had the wrong linefeed format for my
> deployment environment (linux). I'm wondering if there is a way to
> set up subversion to convert the linefeeds automatically when I commit
> things from my windows machine.
>
> Thanks,
> Carl Youngblood

Have a look at properties in the book:

http://svnbook.red-bean.com/en/1.1/ch07s02.html

More importantly, special properties:

http://svnbook.red-bean.com/en/1.1/ch07s02.html#svn-ch-7-sect-2.3

One of them is svn:eol-stype which you will want to set to "native".
You'll have to set it on all the files you want it to occur on, and
then next time you update after commiting the property, all the
platforms will get the right line ending. You can automate this for
future files added to the repository by configuring auto-props in your
.svn/config file (or maybe it's ./svn/configuration). It's also
covered in the Properties section of the book.

Hope that helps.

Patrick

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Apr 26 02:49:16 2005

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.