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

Martin Geisler martin at geisler.net
Thu Jul 11 08:50:41 CDT 2013


Jorge Acereda <jacereda at brainstorm.es> writes:

> On Jul 11, 2013, at 9:03 AM, Martin Geisler wrote:
>
>> Jorge Acereda <jacereda at brainstorm.es> writes:
>> 
>>> # HG changeset patch
>>> # User Jorge Acereda <jacereda at brainstorm.es>
>>> # Date 1373469140 -7200
>>> # Branch stable
>>> # Node ID 3487e904f78164e70cf91552419e1ecf235d8daf
>>> # Parent  fbdac607bff3dfc0056268ca77e524a5ddd4f665
>>> eol: support alternate location for .hgeol file (issue3975)
>>> 
>>> Adds a 'config' setting to the [eol] section that can be used to
>>> specify an alternate location for the .hgeol file. This can help when
>>> dealing with lots of subrepos.
>> 
>> How does it help? Wont you now have to add
>> 
>>  [eol]
>>  config = ~/shared-cfg/hgeol
>> 
>> to .hg/hgrc in all your subrepos? If so, then adding .hgeol files to
>> each repo sound easier.
>
>
> shared-cfg is a mercurial repo shared by all the team.
>
>
> My $HOME/.hgrc looks like:
>
> %include ~/shared-cfg/hgrc
> ...
>
> And ~/shared-cfg/hgrc has:
>
> [eol]
> config = ~/shared-cfg/hgeol
> ...

Mkay... I can see how that can work in a company-controlled
installation, but it's still a bit unusual to put such config into the
~/.hgrc files -- it kind of means that you cannot use Mercurial for
anything *but* the company project... and all projects in the company
must share the same eol settings too.

-- 
Martin Geisler


More information about the Mercurial-devel mailing list