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

Re: line ending summary: the "Breg Hudtherton Proposal"

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2001-12-13 22:54:55 CET

Greg Hudson <ghudson@MIT.EDU> writes:
> Mandy (who uses MacOS 9) creates a text file and checks it in. Since we
> are in a 3b world, this condemns the file to have CR line endings in the
> repository forevermore.

Let's keep in mind that none of these schemes condemn files to any
particular style in perpetuity. You can always reset them by
temporarily disabling the property (if no more convenient mechanism is
available, though one probably should be, but more on that after the
3a vs 3b stuff is done coming in).

> Linus checks out the file; his working copy
> gets LFs. He edits the file and, because he is obtuse, he inserts a CR
> somewhere in the file. Unless we want to error out in that case, when
> he checks in the file, the CR stays a CR and the LFs also become CRs.
> If he were check out the file again, the CR he inserted would become an
> LF. So we need to make sure that happens to the file after commit, or
> we get a file which looks locally modified even though it was just
> committed.

Ooooh, neat. Nice example, thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:53 2006

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.