-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: add simple migration logic to update deprecated variables
Instead of resolving deprecated variables by callers or config object, this patch adds a function that rewrites deprecated variables globally (and emits warnings accordingly.) It's simpler because StackedConfig doesn't have to deal with renamed variables internally. OTOH, warnings will be issued no matter if variables are used or not, which might be a bit noisy. Maybe we can also add "jj config migrate" command that updates user and repo configs.
- Loading branch information
Showing
2 changed files
with
170 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters