[Updated] D11760: rhg: Config commands.status.terse is not supported

SimonSapin phabricator at mercurial-scm.org
Fri Nov 26 15:02:58 UTC 2021


Closed by commit rHGf9db8eeb3aec: rhg: Config commands.status.terse is not supported (authored by SimonSapin).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11760?vs=31073&id=31145

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11760/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D11760

AFFECTED FILES
  rust/rhg/src/commands/status.rs
  tests/test-status-terse.t

CHANGE DETAILS

diff --git a/tests/test-status-terse.t b/tests/test-status-terse.t
--- a/tests/test-status-terse.t
+++ b/tests/test-status-terse.t
@@ -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
diff --git a/rust/rhg/src/commands/status.rs b/rust/rhg/src/commands/status.rs
--- a/rust/rhg/src/commands/status.rs
+++ b/rust/rhg/src/commands/status.rs
@@ -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;



To: SimonSapin, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20211126/a03d88c4/attachment-0002.html>


More information about the Mercurial-patches mailing list