Show More
@@ -182,6 +182,17 b' pub fn run(invocation: &crate::CliInvoca' | |||||
182 | let ui = invocation.ui; |
|
182 | let ui = invocation.ui; | |
183 | let config = invocation.config; |
|
183 | let config = invocation.config; | |
184 | let args = invocation.subcommand_args; |
|
184 | let args = invocation.subcommand_args; | |
|
185 | ||||
|
186 | let verbose = !ui.plain() | |||
|
187 | && !args.is_present("print0") | |||
|
188 | && (config.get_bool(b"ui", b"verbose")? | |||
|
189 | || config.get_bool(b"commands", b"status.verbose")?); | |||
|
190 | if verbose { | |||
|
191 | return Err(CommandError::unsupported( | |||
|
192 | "verbose status is not supported yet", | |||
|
193 | )); | |||
|
194 | } | |||
|
195 | ||||
185 | let all = args.is_present("all"); |
|
196 | let all = args.is_present("all"); | |
186 | let display_states = if all { |
|
197 | let display_states = if all { | |
187 | // TODO when implementing `--quiet`: it excludes clean files |
|
198 | // TODO when implementing `--quiet`: it excludes clean files |
@@ -51,7 +51,7 b' impl Ui {' | |||||
51 | stderr.flush().or_else(handle_stderr_error) |
|
51 | stderr.flush().or_else(handle_stderr_error) | |
52 | } |
|
52 | } | |
53 |
|
53 | |||
54 |
/// |
|
54 | /// Return whether plain mode is active. | |
55 | /// |
|
55 | /// | |
56 | /// Plain mode means that all configuration variables which affect |
|
56 | /// Plain mode means that all configuration variables which affect | |
57 | /// the behavior and output of Mercurial should be |
|
57 | /// the behavior and output of Mercurial should be |
General Comments 0
You need to be logged in to leave comments.
Login now