monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] Re: Bug in CRLF conversions


From: Jon Bright
Subject: Re: [Monotone-devel] Re: Bug in CRLF conversions
Date: Sun, 29 Jan 2006 19:42:43 +0100
User-agent: Thunderbird 1.5 (Windows/20051201)

Richard Levitte - VMS Whacker wrote:

Personally, I find it incredibly dangerous that you can defined the
internal database line ending character...

Me too. I've always argued that the database should have the canonical form (and that this canonical form should be LF-only for text files and whatever-the-file-has for binary or other "don't mess with the line endings" files). My reasoning goes:

1. Everyone's databases should contain the same contents after the same set of operations, independent of platform.
2. The hash of a file in the DB must thefore be the same for everyone.
2. This hash must therefore be based on a single canonical form.
3. Since LF-only is the most common form for the files monotone is most often dealing with, choose LF-only as the common form.

--
Jon




reply via email to

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