Mercurial > public > mercurial-scm > hg
diff rust/rhg/src/main.rs @ 49481: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 | f3cd2d6eeef9 |
children | 85f5d11c77dd |
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") {