Monticello and extra lines between platforms

Ned Konz ned at bike-nomad.com
Wed Jul 2 22:23:26 UTC 2003


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