Mercurial > public > mercurial-scm > hg-stable
diff mercurial/rcutil.py @ 43711:02fe8dedab8c
defaults: rename default.d to defaultrc to make it a valid package name
"default.d" is not a valid Python package name, and it needs to be a
valid package name if we want to be able to load the files from here
as resources.
Differential Revision: https://phab.mercurial-scm.org/D7426
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 14 Nov 2019 17:36:01 -0800 |
parents | 687b865b95ad |
children | 5be909dbe385 |
line wrap: on
line diff
--- a/mercurial/rcutil.py Thu Nov 14 17:30:52 2019 -0800 +++ b/mercurial/rcutil.py Thu Nov 14 17:36:01 2019 -0800 @@ -60,9 +60,9 @@ def defaultrcpath(): - '''return rc paths in default.d''' + '''return rc paths in defaultrc''' path = [] - defaultpath = os.path.join(util.datapath, b'default.d') + defaultpath = os.path.join(util.datapath, b'defaultrc') if os.path.isdir(defaultpath): path = _expandrcpath(defaultpath) return path