changeset 48338:f9db8eeb3aec

rhg: Config commands.status.terse is not supported Differential Revision: https://phab.mercurial-scm.org/D11760
author Simon Sapin <simon.sapin@octobus.net>
date Tue, 09 Nov 2021 18:56:55 +0100
parents 3bd62274cbc9
children a2e278b5e265
files rust/rhg/src/commands/status.rs tests/test-status-terse.t
diffstat 2 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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