Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

settings: own StackedConfig by UserSettings, migrate tests to use config layer #5000

Merged
merged 3 commits into from
Nov 30, 2024

Conversation

yuja
Copy link
Collaborator

@yuja yuja commented Nov 29, 2024

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added tests to cover my changes

yuja added 3 commits November 29, 2024 23:59
… string

This will be used mainly in tests. The default layers might also be migrated to
per-file layers constructed by ConfigLayer::parse().
…fig layer

UserSettings::get_*() will be changed to look up a merged value from
StackedConfig, not from a merged config::Value. This will help migrate away
from the config crate.

Not all tests are ported to ConfigLayer::parse() because it seemed a bit odd
to format!() a TOML document and parse it to build a table of configuration
variables.
lib/tests/test_commit_builder.rs Outdated Show resolved Hide resolved
@yuja yuja merged commit ecf25a1 into jj-vcs:main Nov 30, 2024
18 checks passed
@yuja yuja deleted the push-urrozwrvozsm branch November 30, 2024 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants