Mercurial > public > mercurial-scm > hg-stable
diff mercurial/configuration/__init__.py @ 52458:8c509a70b6fa
config: gather the path to edit through rcutil
Using the common logic helps to reduce potential error when it changes
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 23 Oct 2024 02:05:03 +0200 |
parents | 22129ce9f86d |
children |
line wrap: on
line diff
--- a/mercurial/configuration/__init__.py Wed Oct 23 01:32:33 2024 +0200 +++ b/mercurial/configuration/__init__.py Wed Oct 23 02:05:03 2024 +0200 @@ -26,6 +26,11 @@ LEVEL_SHARED, LEVEL_NON_SHARED, ) +# levels that can works without a repository +NO_REPO_EDIT_LEVELS = ( + LEVEL_USER, + LEVEL_GLOBAL, +) ConfigItemT = Tuple[bytes, bytes, bytes, bytes] ResourceIDT = Tuple[bytes, bytes]