[PATCH V2] eol: support alternate location for .hgeol file (issue3975)

Matt Mackall mpm at selenic.com
Thu Aug 15 15:48:54 CDT 2013

On Tue, 2013-08-06 at 12:43 +0200, Jorge Acereda wrote:
> # HG changeset patch
> # User Jorge Acereda <jacereda at brainstorm.es>
> # Date 1374235830 -7200
> # Node ID 5ba1888e15acfb5a7440cf2cd212b9c9e8bf1287
> # Parent  a58251c0568fc5e86089a803ca75f75cc8c01678
> eol: support alternate location for .hgeol file (issue3975)

Ok, had a bit more time to think about this and I'm afraid I don't like

First, I have to say, in my not so humble opinion as Mercurial's
creator: if you are using EOL rules, you are doing Mercurial wrong.
This is why they're only available as an extension, and the
documentation for that extension starts with "don't":


So I do in fact consider it a good thing that the scope of EOL rules is
a single misguided repository. Further, given that there's no way to
turn the rules -off- per repository, you now have a problem if you try
to work on a normal repository which does not use EOL rules, and you may
cause people with non-broken editors to in fact start committing broken
line endings where they otherwise wouldn't.

Further, I think the adminstrative overhead of adding .hgeol rules to
repositories is pretty minimal. So I don't think this feature is worth
it on balance.

Mathematics is the supreme nostalgia of our time.

More information about the Mercurial-devel mailing list