Line ending translation extension

Paul Moore p.f.moore at gmail.com
Fri Sep 11 14:30:49 CDT 2009


2009/9/11 Martin Geisler <mg at lazybytes.net>:
>> No, internal format should always be the same (probably LF).
>
> I disagree -- I want a repository that looks normal even without using
> the extension. That means that files which are specified as CRLF format
> in .hgeol should be stored in CRLF format in the repository.

Ah, I see.

How does that interact with changing .hgeol? Suppose I checked in
a.txt without putting it in .hgeol (say, on Windows so my working file
uses CRLF). Then I set .hgeols to "unix" for it and check in (note -
no checkout or other edit, all I did was update .hgeols).

By your description, "unix" means no conversion (already in LF format)
and yet the file is NOT in LF format. So someone checks out the repo
and gets CRLF. That doesn't sound like what they'd expect.

Paul.


More information about the Mercurial-devel mailing list