forked from mirrors/jj
cli: drop support for old ui.default-revset
config
We replaced it by `revsets.log` in 0.8.0, which is long enough that users should have been able to switch.
This commit is contained in:
parent
3d898d0a06
commit
f958957f9e
2 changed files with 6 additions and 6 deletions
|
@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
### Breaking changes
|
||||
|
||||
* Dropped support for `ui.default-revset` config (replaced by `revsets.log` in
|
||||
0.8.0).
|
||||
|
||||
### Deprecations
|
||||
|
||||
### New features
|
||||
|
|
|
@ -205,12 +205,9 @@ impl UserSettings {
|
|||
}
|
||||
|
||||
pub fn default_revset(&self) -> String {
|
||||
self.config.get_string("revsets.log").unwrap_or_else(|_| {
|
||||
// For compatibility with old config files (<0.8.0)
|
||||
self.config
|
||||
.get_string("ui.default-revset")
|
||||
.unwrap_or_else(|_| "@ | ancestors(immutable_heads().., 2) | trunk()".to_string())
|
||||
})
|
||||
self.config
|
||||
.get_string("revsets.log")
|
||||
.unwrap_or_else(|_| "@ | ancestors(immutable_heads().., 2) | trunk()".to_string())
|
||||
}
|
||||
|
||||
pub fn signature(&self) -> Signature {
|
||||
|
|
Loading…
Reference in a new issue