rhg: Config commands.status.terse is not supported
authorSimon Sapin <simon.sapin@octobus.net>
Tue, 09 Nov 2021 18:56:55 +0100
changeset 48338 f9db8eeb3aec
parent 48337 3bd62274cbc9
child 48339 a2e278b5e265
rhg: Config commands.status.terse is not supported Differential Revision: https://phab.mercurial-scm.org/D11760
rust/rhg/src/commands/status.rs
tests/test-status-terse.t
--- a/rust/rhg/src/commands/status.rs	Tue Nov 09 18:39:37 2021 +0100
+++ b/rust/rhg/src/commands/status.rs	Tue Nov 09 18:56:55 2021 +0100
@@ -148,6 +148,15 @@
             "ui.statuscopies is not yet supported with rhg status",
         ));
     }
+    if invocation
+        .config
+        .get(b"commands", b"status.terse")
+        .is_some()
+    {
+        return Err(CommandError::unsupported(
+            "status.terse is not yet supported with rhg status",
+        ));
+    }
 
     let ui = invocation.ui;
     let config = invocation.config;
--- a/tests/test-status-terse.t	Tue Nov 09 18:39:37 2021 +0100
+++ b/tests/test-status-terse.t	Tue Nov 09 18:56:55 2021 +0100
@@ -1,7 +1,3 @@
-TODO: fix rhg bugs that make this test fail when status is enabled
-  $ unset RHG_STATUS
-
-
   $ mkdir folder
   $ cd folder
   $ hg init