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

Maxim Dounin mdounin at mdounin.ru
Thu Jan 10 18:58:44 UTC 2008


Hello!

On Thu, Jan 10, 2008 at 12:50:35PM -0500, Jesse Glick wrote:

>Maxim Dounin wrote:
>> At least the problem will manifest itself when working under  
>> other user's home for some reason.
>
>Then the .hgrc will be owned by another user and thus automatically 
>ignored. For example, if root on Solaris created /.hgrc for some reason, 
>you would see a warning when doing an Hg operation as another user:
>
>Not trusting file /.hgrc from untrusted user root, group root
>
>and the file would not be used.

Agree. Sorry I missed it.

But the problem will be still here if you trust user under which 
home you are working or if copied homedir e.g. from other machine.

Just to make it clear: I think this is good feature and will 
be happy to use it (and thank you for programming it, BTW). I just 
don't think that making this behaviour default is a good idea, 
this is not what people generally expect from SCM software.

Maxim Dounin



More information about the Mercurial-devel mailing list