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

Maxim Dounin mdounin at mdounin.ru
Thu Jan 10 11:30:58 CST 2008


Hello!

On Thu, Jan 10, 2008 at 09:59:20AM -0600, Matt Mackall wrote:

>On Thu, 2008-01-10 at 18:42 +0300, Maxim Dounin wrote:
>> Hello!
>> 
>> On Thu, Jan 10, 2008 at 10:02:53AM -0500, Jesse Glick wrote:
>> 
>> ># HG changeset patch
>> ># User Jesse Glick <jesse.glick at sun.com>
>> ># Date 1199977313 18000
>> ># Node ID 7f1e5d43bbbe33c852af9ed352e8da9d0ecd9c9c
>> ># Parent  0990036ceba2347d057b5b93b4b7793c2e1025fc
>> >Check for .hgrc files in ancestor directories above the repository.
>> >This gives you an easy way to configure e.g. ui.username for a group of related
>> >repositories, without needing to remember to edit .hg/hgrc in each clone. #918.
>> >Changes since first submission:
>> >- minor order change in docs for clarity (thanks Peter Arrenbrecht)
>> 
>> Could you please make this optional and off by default? I really
>> think this breaks POLA.
>
>What difficulties are you expecting to encounter?
>
>Nested repos shouldn't be a problem - they use .hg/hgrc, which won't be
>in the path back to root. The only .hgrc file you're likely to run into
>(because it's the only place we currently support it) going up a tree is
>in ~.

At least the problem will manifest itself when working under  
other user's home for some reason.

Not even speaking about Solaris with default root's home in /, and 
thus root's .hgrc used for all repos with this patch. I hope this 
was really discussed in Sun since this hurts them a lot more than 
others. :)

Maxim Dounin


More information about the Mercurial-devel mailing list