equal
deleted
inserted
replaced
128 let status_enabled = invocation.config.get_option(b"rhg", b"status")?; |
128 let status_enabled = invocation.config.get_option(b"rhg", b"status")?; |
129 if !status_enabled.unwrap_or(status_enabled_default) { |
129 if !status_enabled.unwrap_or(status_enabled_default) { |
130 return Err(CommandError::unsupported( |
130 return Err(CommandError::unsupported( |
131 "status is experimental in rhg (enable it with 'rhg.status = true' \ |
131 "status is experimental in rhg (enable it with 'rhg.status = true' \ |
132 or enable fallback with 'rhg.on-unsupported = fallback')" |
132 or enable fallback with 'rhg.on-unsupported = fallback')" |
|
133 )); |
|
134 } |
|
135 |
|
136 // TODO: lift these limitations |
|
137 if invocation.config.get_bool(b"ui", b"tweakdefaults").ok() == Some(true) { |
|
138 return Err(CommandError::unsupported( |
|
139 "ui.tweakdefaults is not yet supported with rhg status", |
|
140 )); |
|
141 } |
|
142 if invocation.config.get_bool(b"ui", b"statuscopies").ok() == Some(true) { |
|
143 return Err(CommandError::unsupported( |
|
144 "ui.statuscopies is not yet supported with rhg status", |
133 )); |
145 )); |
134 } |
146 } |
135 |
147 |
136 let ui = invocation.ui; |
148 let ui = invocation.ui; |
137 let args = invocation.subcommand_args; |
149 let args = invocation.subcommand_args; |