Mercurial > public > mercurial-scm > hg
diff rust/hg-core/src/narrow.rs @ 52039:ae1ab6d71f4a
rust: implement `From<SparseConfigWarning>` for `HgError`
This will be useful in a future patch to avoid a lot of boilerplate.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Mon, 30 Sep 2024 16:55:11 +0200 |
parents | 796b5d6693a4 |
children | 77b95a4abbb2 |
line wrap: on
line diff
--- a/rust/hg-core/src/narrow.rs Mon Sep 30 16:04:51 2024 +0200 +++ b/rust/hg-core/src/narrow.rs Mon Sep 30 16:55:11 2024 +0200 @@ -24,7 +24,7 @@ /// as part of wire protocol commands. That means that changes to this /// data structure influence the wire protocol and should not be taken /// lightly - especially removals. -const VALID_PREFIXES: [&str; 2] = ["path:", "rootfilesin:"]; +pub const VALID_PREFIXES: [&str; 2] = ["path:", "rootfilesin:"]; /// Return the matcher for the current narrow spec, and all configuration /// warnings to display.