zjwang zjwang - 1 year ago 162
Git Question

How to config Mercurial HG to auto ignore line ending changes?

I'm transfer a hg repo from a Windows environment to Unix. When I perform

hg status
it seems many files are marked as modified due to the change in line ending resulted from the Windows to Unix migration.

In git one can do the following to resolve this but what is the equivalent solution for mercurial hg?

git config --global core.autocrlf true

Answer Source

Maybe this extension does the work. Check out EolExtension

Enable Eol extension (in your .hgrc file):

eol =

And then override the OS default carriage return:

native = CRLF
only-consistent = False
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download