[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mercurial
Subject:    Re: Check whether a configuration key is set globally, rather than on the current repository
From:       Michał_Sznajder <michalsznajder () gmail ! com>
Date:       2012-02-23 19:01:21
Message-ID: CAGEAcW3rd8eZgVd15KrWbgxDkh_WsWx2ReSp-Szpm8YzkkrGxg () mail ! gmail ! com
[Download RAW message or body]

On Thu, Feb 23, 2012 at 7:25 PM, Matt Mackall <mpm@selenic.com> wrote:
> On Thu, 2012-02-23 at 17:23 +0100, Angel Ezquerra Moreu wrote:
>> Hi,
>>
>> I am working on an extension and I need to tell if a given
>> configuration key is set globally, but is not set on the current
>> repository's configuration file.
>>
>> The reason is that I want to use the global configuration as a
>> fallback, and I want the extension to behave differently depending on
>> whether the setting that is being used is the fallback, versus the
>> case in which the setting has been explicitly set on the current
>> repository.
>
> Sounds like too much magic.
>

Agreed. What are you exactly working on?

Michał
_______________________________________________
Mercurial mailing list
Mercurial@selenic.com
http://selenic.com/mailman/listinfo/mercurial

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic