Monticello and extra lines between platforms

Derek Brans brans at nerdonawire.com
Thu Jul 3 00:49:59 UTC 2003


Thanks for the responses Avi, Julian, Colin and Ned.

I'm also not very line ending knowledgeable.  What's the easiest way to
correct my .mc file?

Thanks
Derek

Derek Brans
Nerd on a Wire
Web design that's anything but square
http://www.nerdonawire.com
mailto: brans at nerdonawire.com
phone: 604.874.6463
toll-free: 1-877-NERD-ON-A-WIRE
----- Original Message -----
From: "Ned Konz" <ned at bike-nomad.com>
To: "The general-purpose Squeak developers list"
<squeak-dev at lists.squeakfoundation.org>
Sent: Wednesday, July 02, 2003 3:23 PM
Subject: Re: Monticello and extra lines between platforms


> On Wednesday 02 July 2003 02:58 pm, Derek Brans wrote:
> > I've been working back and forth between my mac and my PC with
> > Monticello and CVS.  I've noticed now that there are 5 blank lines
> > between each line of my code.  This kind-of grew gradually.
> >
> > I also sometimes notice in my CVS logs that all lines get thrown
> > out and read back in (huge diffs) from time to time, possibly
> > coinciding with changing platforms.
> >
> > I wonder if there are different newLine characters at work here on
> > the different platforms.  Either in the CVS encoding, or the
> > Monticello encoding.  Has anyone encountered anything similar in
> > their adventures?
>
> Sure. That's why we made the changes to Monticello. Are you using the
> latest version?
>
> The way it *should* work with the new Monticello is this:
>
> * You have CVS set up to regard .mc files as text files. DO NOT tell
> CVS that they're binary files (i.e. make SURE that you don't have the
> -kb flag set).
>
> * This means that they should have whatever native line ends you use
> on the platform where you are working. It is assumed that you're not
> doing something pathological like moving files between different OS's
> (but see below)
>
> * Monticello will normalize line endings on input. It will also
> remember what the line ending conventions were when the file was read
> in, to deal with pathological cases like moving files between OSs.
>
> You can still shoot yourself in the foot if you copy your working
> image between platforms with different line end conventions, though
> (I think, maybe not).
>
> --
> Ned Konz
> http://bike-nomad.com
> GPG key ID: BEEA7EFE
>
>
>
>




More information about the Squeak-dev mailing list