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

Re: Cygwin, eol-style, and --native-eol

From: Bill Baxter <wbaxter_at_gmail.com>
Date: 2005-02-26 14:26:39 CET

Jani -- svn:eol-style doesn't do what I want. It modifies the
repository, changing how the files get checked out for _all_ users. I
just want to change how the files get check out for _me_ on a
case-by-case basis.

Michael -- Currently, yes, Cygwin is exactly my issue. I prefer to do
all my work in the Cygwin bash shell, but actually I generally have
the cygwin filesystem mounted in DOS-mode, not Unix-mode. So that's
one issue, but it seems like the cygwin folks do recognize it as a bug
that svn doesn't take that setting as the 'native' EOL style. The
cygwin port of CVS does take it into account, which is really the
whole reason I use Cygwin in DOS-mode in the first place -- to get CVS
to act properly.

But beyond svn's behavior under Cygwin, I still think it would be
useful if one could check out one copy of one's source tree on a unix
machine and then freely edit it from either unix or windows (via
samba, e.g.) and svn would just take care of the line endings so that
junk doesn't get checked in. I think that would require the checked
out tree to 'know' what sort of eol-style it is.

Ok, so anyway, it sounds like what I want isn't supported and isn't
likely to be in the near future. In that case, is there any
reasonable workaround that will let me work from a cygwin shell, but
have all my source files treated as DOS? I guess I'll just try using
the win32 command line client from inside Cygwin and see how it goes.

Thanks,
---bb

On 25 Feb 2005 15:56:03 -0600, C. Michael Pilato <cmpilato@collab.net> wrote:
> Jani Averbach <jaa@jaa.iki.fi> writes:
>
> > On 2005-02-25 12:48+0900, Bill Baxter wrote:
> > > It seems there's NO way to force svn to check out files as CRLF under
> > > Unix or Cygwin. This just smacks me as a bizarre limitation for svn
> > > to have at this stage of the game.
> >
> > svn:eol-style might help you:
> > http://svnbook.red-bean.com/en/1.1/ch07s02.html#svn-ch-7-sect-2.3.5
> >
> > svn help ps
> > ...
> > svn:eol-style - One of 'native', 'LF', 'CR', 'CRLF'.
>
> I think the complaint is that on a cygwin system, you might have
> variations notions of what "native" means depending on whether you
> feel like using Unix or Windows tools to operate on the working copy
> files.
>
> Am I completely wrong?
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Feb 26 14:28:13 2005

This is an archived mail posted to the Subversion Dev mailing list.

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