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

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Thu Sep 17 11:49:17 UTC 2015


http://bz.selenic.com/show_bug.cgi?id=4832

            Bug ID: 4832
           Summary: hgrc file format should support an !important
                    qualifier like CSS
           Product: Mercurial
           Version: 3.5
          Hardware: PC
                OS: Windows
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at selenic.com
          Reporter: gabor.stefanik at nng.com
                CC: mercurial-devel at selenic.com

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.

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.

My proposed syntax for this is:

[web]
cacerts = /etc/our-cacerts.pem !important

Placing this in /etc/mercurial/hgrc should override any attempts to set
web.cacerts e.g. in ~/hgrc, unless that one is also !important.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list