[PATCH] Check for .hgrc files in ancestor directories above the repository

Maxim Dounin mdounin at mdounin.ru
Mon Jan 14 07:26:56 CST 2008


Hello!

On Mon, Jan 14, 2008 at 01:55:33PM +0100, Peter Arrenbrecht wrote:

>One more observation :)
>
>With this approach (using the .hgrc-* name in the parent hierrachy to
>identify the ~/.hgrc-* file(s) to load), a simple
>
>  find . -name ".hgrc-*"
>
>should tell one what specific config files are activated where in a tree.

As far as I understand your proposal, any repo under your home 
will activate all .hgrc-* files (since they are in parent dir). 
This probably not intended behaviour.

I still think [include] section in ~/.hgrc will be less confusing 
aproach. And you may use any matching you want with it (personally 
I will be happy with just repo path prefix matching).

Maxim Dounin


More information about the Mercurial-devel mailing list