rust/rhg/src/commands/status.rs
changeset 48513 47f2a82ae3e4
parent 48511 c9abfb80b4e3
child 48540 20d0d896183e
--- a/rust/rhg/src/commands/status.rs	Fri Dec 17 17:56:13 2021 +0100
+++ b/rust/rhg/src/commands/status.rs	Sat Dec 18 11:47:03 2021 +0100
@@ -182,6 +182,17 @@
     let ui = invocation.ui;
     let config = invocation.config;
     let args = invocation.subcommand_args;
+
+    let verbose = !ui.plain()
+        && !args.is_present("print0")
+        && (config.get_bool(b"ui", b"verbose")?
+            || config.get_bool(b"commands", b"status.verbose")?);
+    if verbose {
+        return Err(CommandError::unsupported(
+            "verbose status is not supported yet",
+        ));
+    }
+
     let all = args.is_present("all");
     let display_states = if all {
         // TODO when implementing `--quiet`: it excludes clean files