Mercurial > public > mercurial-scm > hg-stable
diff mercurial/ui.py @ 44033:1864efbe90d9
ui: add the ability to apply `defaultrc` configs from resources
We will want the ability to cat out these resources, but the same would apply to
templates, so I'm going to wait for the dust to settle on that. Reading the
default config directly from the filesystem is still in place for now.
Differential Revision: https://phab.mercurial-scm.org/D7776
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 29 Dec 2019 21:06:34 -0500 |
parents | 5ac0e6f19eb4 |
children | e2278581b1c6 |
line wrap: on
line diff
--- a/mercurial/ui.py Sun Dec 29 20:51:44 2019 -0500 +++ b/mercurial/ui.py Sun Dec 29 21:06:34 2019 -0500 @@ -308,6 +308,8 @@ for t, f in rcutil.rccomponents(): if t == b'path': u.readconfig(f, trust=True) + elif t == b'resource': + u.read_resource_config(f, trust=True) elif t == b'items': sections = set() for section, name, value, source in f: