monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] Re: line endings with 0.31


From: Brian May
Subject: Re: [Monotone-devel] Re: line endings with 0.31
Date: Wed, 22 Nov 2006 10:13:08 +1100
User-agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.4.19 (linux)

>>>>> "hendrik" == hendrik  <address@hidden> writes:

    hendrik> In monotone, I suggest that a file that has been
    hendrik> character-converted on checkout have its line-end codingw
    hendrik> reverted on checkin, on a line-by-line basis.  Thus only
    hendrik> when the user explicitly edits line ends will the
    hendrik> end-of-line coding be changed in the repository.  This
    hendrik> would have the effect that if massive damage is done to a
    hendrik> true binary file if it is mistakenly line-end-converted,
    hendrik> the damage would be mostly undone on subsequent checkin.

    hendrik> It is probably not the most convenient load to dump on
    hendrik> the diff engine, though I can imagine algorithms.

The big problem I see with this is if a user tries to merge two
changed versions of a file, which have different end-of-line codes.

Or maybe one user fixes the line ending attribute for a file and
another user updates the file to use another line ending. What happens
when one the users tries to merge the results?

This could get complicated, and might even end up in the very
corruption problem you are trying to avoid anyway (e.g. if the file
being merged is binary but marked as ascii in one/more of the
revisions).
-- 
Brian May <address@hidden>




reply via email to

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