rust/rhg/src/commands/status.rs
changeset 48171 64b8676f11bb
parent 48069 3d0a9c6e614d
child 48175 707c58880cd0
--- a/rust/rhg/src/commands/status.rs	Mon Jul 19 04:13:50 2021 +0530
+++ b/rust/rhg/src/commands/status.rs	Thu Jun 24 14:23:11 2021 +0530
@@ -133,6 +133,18 @@
         ));
     }
 
+    // TODO: lift these limitations
+    if invocation.config.get_bool(b"ui", b"tweakdefaults").ok() == Some(true) {
+        return Err(CommandError::unsupported(
+            "ui.tweakdefaults is not yet supported with rhg status",
+        ));
+    }
+    if invocation.config.get_bool(b"ui", b"statuscopies").ok() == Some(true) {
+        return Err(CommandError::unsupported(
+            "ui.statuscopies is not yet supported with rhg status",
+        ));
+    }
+
     let ui = invocation.ui;
     let args = invocation.subcommand_args;
     let display_states = if args.is_present("all") {