Search code examples
mercurialcross-platformeol

Mercurial end of line translation


I'm using Mercurial on Windows for a cross-platform project, with the eol extension to translate line endings to Unix format, which mostly works, except .hgeol and .hgignore are not translated. My .hgeol looks like this:

[patterns]
** = native
.* = native

where I got the ** line from the documentation, and then added .* just in case it works like the Unix shell expansion that otherwise ignores file names beginning with . but still no go. Is there something else I need to be doing?


Solution

  • The source of eol.py explicitly disable translations for files starting with .hg*:

    self.cfg.set('patterns', '.hg*', 'BIN')
    

    If that is a problem for you, please open an issue in our bugtracker (I don't know why they chose to disable it for this files).