EOL: patch.eol=auto setting

alexrayne alexraynepe196 at lavabit.com
Sun Dec 20 16:21:13 CST 2009


As understand this change only affects patch, therefore nothing changed 
when i try to look an diff of my work version with CRLF and repo-version with LF.
look like work is not completed, need support for diff too


Martin Geisler пишет:
> Hi guys,
>
> I've pushed my patches that adds a patch.eol=auto setting. The old
> 'crlf' and 'lf' settings had the effect that line endings were ignored
> completely while merging, and the file was written out in the requested
> format. The 'auto' setting also ignores line endings, but files are
> written in the same format as they were read in.
>
> The goal is to keep the working directory files in the same format as we
> found them. This allows us to apply a patch that touch files with both
> CRLF and LF line-endings, without coercing all files into the same EOL
> format. I've added a test for this in the eol extension:
>
>   http://bitbucket.org/mg/hg-eol/changeset/ff3176ddb382/#chg-tests/test-eol-patch
>
> I've Cc'ed the people that were active in the last EOL thread... please
> grab these revisions (or a later revision) and try things out:
>
>   http://hg.intevation.org/mercurial/crew/rev/1720d70cd6d4
>   http://bitbucket.org/mg/hg-eol/changeset/ff3176ddb382/
>
>   



More information about the Mercurial-devel mailing list