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

Re: Checking out To Unix over Mapped Drive CR/LF

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-04-19 14:20:21 CEST

On 4/19/07, Rob Hudson <rhudson@tibco.com> wrote:
>
> Hi all,
>
> I have an issue similar to that discribed in the thread:
>
> http://thread.gmane.org/gmane.comp.version-control.subversion.tortoisesvn.user/2927/focus=2936
>
> However I have a slightly different issue.
>
> We have one repository that we build on both Windows and UNIX (Solaris, AIX,
> HPUX, Linux). When we checkout to Windows we need CRLF on all files and for
> UNIX we need LF. In order to be able to switch these I have left the subversion
> svn:eol-style property to native.
>
> I can get the correct behaviour if I checkout Windows using TortoiseSVN and UNIX
> using the svn command line utility.
>
> However what I would like to be able to do is use TortoiseSVN to checkout over a
> mapped network drive to a UNIX machine and have it checkout using LF format.

svn:eol-style="native" is based on the OS you're using to perform the
action. To do what you're looking for, you basically would need to run
a script after the checkout to run dos2unix (or similar) on the files
that need to be converted.

Or, fix your system so that it "needs" the same eol marker regardless
of OS. Most decent text editors can handle either style equally well,
for example.

It's generally discouraged to share working copies between OSes and
users for reasons like this.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Thu Apr 19 14:21:10 2007

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.