Line ending translation extension
Martin Geisler
mg at lazybytes.net
Mon Sep 7 05:34:34 CDT 2009
Mads Kiilerich <mads at kiilerich.com> writes:
> On 09/07/2009 09:56 AM, Martin Geisler wrote:
>> Yes, that's why the prototype I posted support a section like this in
>> the .hgeol file:
>>
>> [repository]
>> native = CRLF
>>
>
> Ok - you mean "repository" litterally. I assumed that it was for
> overruling the platforms default understanding of "native encoding". I
> think such functionality will be needed too. For example to create a
> tar-ball for "the other" platform.
Definitely -- Paul Moore said he wanted use use LF on Windows, so the
extension support that with
[translateeol]
native = LF
in your ~/.hgrc file. It will of course default to the native line
separator for your platform:
http://bitbucket.org/digitalxero/hg-eol/src/tip/eol.py#cl-40
--
Martin Geisler
VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
More information about the Mercurial-devel
mailing list