changeset 49495:a0d189b2e871

rhg: don't fallback if `strip` or `rebase` are activated Neither of these extensions do anything other than add commands, so ignoring them opens up more of the test suite to rhg.
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 12 Jul 2022 10:15:52 +0200
parents 0199712c7a6d
children 5fbdd88824dc
files rust/rhg/src/main.rs
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rust/rhg/src/main.rs	Mon Jul 11 17:44:03 2022 +0200
+++ b/rust/rhg/src/main.rs	Tue Jul 12 10:15:52 2022 +0200
@@ -677,8 +677,15 @@
 /// The `*` extension is an edge-case for config sub-options that apply to all
 /// extensions. For now, only `:required` exists, but that may change in the
 /// future.
-const SUPPORTED_EXTENSIONS: &[&[u8]] =
-    &[b"blackbox", b"share", b"sparse", b"narrow", b"*"];
+const SUPPORTED_EXTENSIONS: &[&[u8]] = &[
+    b"blackbox",
+    b"share",
+    b"sparse",
+    b"narrow",
+    b"*",
+    b"strip",
+    b"rebase",
+];
 
 fn check_extensions(config: &Config) -> Result<(), CommandError> {
     if let Some(b"*") = config.get(b"rhg", b"ignored-extensions") {