[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Line Breaks

From: Eric Siegerman
Subject: Re: Line Breaks
Date: Fri, 31 May 2002 13:33:59 -0400
User-agent: Mutt/1.2.5i

On Fri, May 31, 2002 at 10:57:46AM -0400, Larry Jones wrote:
> Willi Richert writes:
> > if I check out a file under unix which was 
> > checked in under windows I get the unix line breaks.
> > 
> > Is that true? In my CVS it does not work.
> Yes, it's true, provided your CVS clients follow the rules.

And provided your CVS *users* follow the rules.  It's possible to
defeat CVS's attempts to do this conversion.  If someone managed
to do so, they could have checked CRLF's into the repo.  When you
check out on UNIX, you'll get CRLF's.  When you check out on
Windows, you'll get CRCRLF's [sic].  Both are wrong, of course.

There are several ways to screw this up:
  - remote-mounting a sandbox from UNIX->Windows or vice versa
    (you can get away with this if you're careful, but you have
    to be *really* careful)

  - FTPing files from your Windows machine to a sandbox on a UNIX
    machine in binary mode, then committing them from there

  - Using Cygwin, or so I gather from the list

These are all variants of the same basic mistake: taking a file
with line endings for OS A and feeding it to a version of CVS
compiled for OS B, by moving the file from A to B via some means
external to CVS.


|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.        address@hidden
|  |  /
Anyone who swims with the current will reach the big music steamship;
whoever swims against the current will perhaps reach the source.
        - Paul Schneider-Esleben

reply via email to

[Prev in Thread] Current Thread [Next in Thread]