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

Maxim Dounin mdounin at mdounin.ru
Sun Jan 13 08:34:01 CST 2008


Hello!

On Sat, Jan 12, 2008 at 09:17:51PM -0500, Jesse Glick wrote:

>Peter Arrenbrecht wrote:
>> I'm happy now. Jesse?
>
>My opinions:
>
>1. 0-revision matches would do everything I want already. I have not 
>heard of a use case to justify the added complexity of repository path 
>matching.

You may be right here. I originally suggested just path-prefix 
matching. Repository root node matching probably would be better 
here.

>2. Having configuration in ~/.hgrc which then points to additional 
>configuration files seems unnecessarily confusing.

Pointer to another configuration file basically:

1. Simplifies code (existing config parser will do the trick).
2. Allows configuration reuse if you have several different repos 
that require identical settings (with you aproach this will be 
cut-n-paste).

So I still think 

[include]
9117c6561b0b = .hgrc-something

would be better, even if you prefer to omit anything but root node 
matching.

Maxim Dounin


More information about the Mercurial-devel mailing list