equal
deleted
inserted
replaced
147 || self.ignored) |
147 || self.ignored) |
148 } |
148 } |
149 } |
149 } |
150 |
150 |
151 pub fn run(invocation: &crate::CliInvocation) -> Result<(), CommandError> { |
151 pub fn run(invocation: &crate::CliInvocation) -> Result<(), CommandError> { |
152 let status_enabled_default = false; |
|
153 let status_enabled = invocation.config.get_option(b"rhg", b"status")?; |
|
154 if !status_enabled.unwrap_or(status_enabled_default) { |
|
155 return Err(CommandError::unsupported( |
|
156 "status is experimental in rhg (enable it with 'rhg.status = true' \ |
|
157 or enable fallback with 'rhg.on-unsupported = fallback')" |
|
158 )); |
|
159 } |
|
160 |
|
161 // TODO: lift these limitations |
152 // TODO: lift these limitations |
162 if invocation.config.get_bool(b"ui", b"tweakdefaults")? { |
153 if invocation.config.get_bool(b"ui", b"tweakdefaults")? { |
163 return Err(CommandError::unsupported( |
154 return Err(CommandError::unsupported( |
164 "ui.tweakdefaults is not yet supported with rhg status", |
155 "ui.tweakdefaults is not yet supported with rhg status", |
165 )); |
156 )); |