rhg: don't fallback if `strip` or `rebase` are activated
authorRaphaël Gomès <rgomes@octobus.net>
Tue, 12 Jul 2022 10:15:52 +0200
changeset 49481 a0d189b2e871
parent 49480 0199712c7a6d
child 49482 5fbdd88824dc
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.
rust/rhg/src/main.rs
--- 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") {