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

Jesse Glick Jesse.Glick at Sun.COM
Mon Jan 14 07:37:33 CST 2008


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

I also find the current proposals for included files above the repo to 
be hopelessly confusing.

A simpler alternative to Maxim's proposal which does not require any 
additional config files or special section name, based on my earlier 
0-rev match syntax:

---%<---
To apply settings only to a certain set of repositories, just append an 
'@' and an (absolute) directory name pattern to a section name.

For example, to hide merge commits from history display for the 
repositories /sources/hg, /sources/hg-crew, etc.:

[defaults@/sources/hg*]
log = -M

To match repositories with those names anywhere on disk:

[defaults@**/hg*]
log = -M
---%<---


More information about the Mercurial-devel mailing list