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

Re: line-ending conversion and keyword substitution

From: Bruce Atherton <bruce_at_callenish.com>
Date: 2001-12-12 00:56:34 CET

At 02:18 PM 12/11/2001 -0500, Greg Hudson wrote:
>2. If you accidentally commit a binary file with newline substitution
>turned on, you irrevocably destroy the contents of the file.

I'm afraid I don't see this as an irrevocable action.

As I read the document, the copy of the file that is initially checked in
to the repository will never have any changes whatsoever. When the file is
checked out the line endings could potentially be changed, and after
editing a precommit alteration may occur but only if the endings changed on
checkout.

Even if you forget to turn off newline substitution and manage to munge
your binary file (in both directions), the original file will always be in
the repository, ready for resurrecting. True, you lose your changes, but I
guess there has to be some consequence to not setting the properties
properly or you will never remember to do the right thing.

Did I misread the document? Is there a scenario where the initial commit
does make changes to the file?

---------------------------------------------------------------------
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:52 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.