[Bug 4832] New: hgrc file format should support an !important qualifier like CSS

Pierre-Yves David pierre-yves.david at ens-lyon.org
Tue Sep 22 01:13:16 CDT 2015



On 09/21/2015 09:11 PM, Brandon McCaig wrote:
> On Thu, Sep 17, 2015 at 7:49 AM,  <mercurial-bugs at selenic.com> wrote:
>> Today I encountered a Linux machine that wouldn't access our internal
>> repositories through https despite having web.cacerts set to the correct
>> certificate store (including our internal-use CA certificates) in
>> /usr/local/etc/mercurial/hgrc. It turned out that /etc/mercurial/hgrc.d
>> contained an rc file that also tried to set web.cacerts, to a different
>> certificate store.
>>
>> Debugging this was a rather difficult affair, took me a while to find the file
>> that contained the bogus web.cacerts setting. Even worse, it could have been a
>> file to which I have no write access.

hg config --debug will give you the location where each config is set.

The help should point to this command in the generic `hg help config)

>> For this reason, it would be nice to have an !important qualifier like CSS, to
>> allow settings in one file to forcibly override ones even in higher-priority
>> files.

Note super enthousiastic about that. User always have access to a higher 
priority file.



-- 
Pierre-Yves David


More information about the Mercurial-devel mailing list