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

Re: WIN32_RETRY_LOOP on Cygwin (was: Subversion 1.5.0 Release Candidate 4 Released)

From: Spiro Trikaliotis <news-200803_at_trikaliotis.net>
Date: Tue, 29 Apr 2008 20:49:57 +0200

Hello Karl,

thank you for your answer.

Karl Fogel wrote:

> Spiro Trikaliotis <news-200803_at_trikaliotis.net> writes:

>> Additionally, the current SVN client (1.4.6) always uses LF line endings
>> as "natural" line endings in cygwin, regardless if cygwin has been
>> installed with LF line-endings, or with CR/LF line endings.
>
> Hmmm, how does Subversion determine the "native" end-of-line convention?
> I'd think we just ask APR somehow; if so, the question is, why isn't APR
> getting the right answer on Cygwin?

It is because it is not clear on Cygwin what is the native format. With
Cygwin, you can mount directories with LF line endings, and you can mount
them with CRLF line endings. You can even mount the same part of the FS
in two diffent directories, once with LF, and once with CRLF line
endings.

Obviously, the developers of APR must have thought the the LF line
ending is the natural one for Cygwin. However, Cygwin operates on
Windows, where CRLF is the natural line ending.

CVS always behaves correctly in this case, as CVS opens text files as
such (fopen(..., "wt")). As SVN handles this case itself, it must know
which is the correct line ending.

This could, for example, be recognized from Cygwin. Anyway, personally,
it would be enough for me if I could somehow tell SVN which line ending
to use as the native one. Something like --native-eol for "svn export"
also for the checkout, update and commit commands would be exactly what
I would need, or the ability to override in the config file.

I have seen this being discussed elsewhere, too, in the thread starting
here:

  http://svn.haxx.se/dev/archive-2005-02/0993.shtml

It also talks about how one could change the native eol style locally:

  http://svn.haxx.se/dev/archive-2005-02/1034.shtml

>> I wanted to test this with the current 1.5.0RC4, but I was not able to
>> compile it myself. (Yes, I would prefer a pre-built version of this.)
>> Will there be a change with 1.5.0RC4, or does it still behave the same
>> here?
>
> I didn't understand your final question (reword it?), but re prebuilts:
> I don't know of any, and search://subversion "1.5.0-rc4" prebuilt/ turns
> up only your mail :-).

You understood it correctly, the link you send in the next mail was
exactly what I was searching for: A version for Windows which I do not
have to compile. I could have called it "Windows binaries" instead, you
are right.

Thanks for your time,
Spiro.

-- 
Spiro R. Trikaliotis                              http://opencbm.sf.net/
http://www.trikaliotis.net/                     http://www.viceteam.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-29 21:04:08 CEST

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.