EOL extension and patch.eol

Martin Geisler mg at lazybytes.net
Sat Dec 5 04:20:40 CST 2009


Hi guys,

I've pushed this test case to Bitbucket:

  http://bitbucket.org/mg/hg-eol/changeset/ef070315d614/

As the commit message says, I believe it is wrong since it cannot handle
the case where we have to change patch.eol in a single patch. The code
will actually normalize all EOLs to whatever the platform native setting
it, also in binary files.

I searched back a bit and found

  http://selenic.com/hg/rev/ac92775b3b80

which introduces the patch.eol setting. I also found

  http://markmail.org/message/acmrduwld75drnw3

by Colin which looks superior since I believe it does apply the filters
on a per-file basis. I believe that is the root problem: the patch.eol
setting is global to all files in a single imported patch.

Does anybody have a suggestion?

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20091205/77116fc1/attachment.pgp>


More information about the Mercurial-devel mailing list