Mercurial > public > mercurial-scm > hg-stable
diff rust/rhg/src/commands/status.rs @ 52286:039b7caeb4d9
rust-revlog: introduce an `options` module
This helps group all the relevant revlog options code and makes the `mod.rs`
more readable.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Wed, 25 Sep 2024 18:24:15 +0200 |
parents | 0ea323b7e3b1 |
children | bd8081e9fd62 |
line wrap: on
line diff
--- a/rust/rhg/src/commands/status.rs Wed Sep 25 18:10:03 2024 +0200 +++ b/rust/rhg/src/commands/status.rs Wed Sep 25 18:24:15 2024 +0200 @@ -23,16 +23,17 @@ use hg::manifest::Manifest; use hg::matchers::{AlwaysMatcher, IntersectionMatcher}; use hg::repo::Repo; +use hg::revlog::options::{default_revlog_options, RevlogOpenOptions}; use hg::utils::debug::debug_wait_for_file; use hg::utils::files::{ get_bytes_from_os_str, get_bytes_from_os_string, get_path_from_bytes, }; use hg::utils::hg_path::{hg_path_to_path_buf, HgPath}; +use hg::DirstateStatus; use hg::Revision; use hg::StatusError; use hg::StatusOptions; use hg::{self, narrow, sparse}; -use hg::{DirstateStatus, RevlogOpenOptions}; use hg::{PatternFileWarning, RevlogType}; use log::info; use rayon::prelude::*; @@ -383,8 +384,11 @@ })?; let working_directory_vfs = repo.working_directory_vfs(); let store_vfs = repo.store_vfs(); - let revlog_open_options = - repo.default_revlog_options(RevlogType::Manifestlog)?; + let revlog_open_options = default_revlog_options( + repo.config(), + repo.requirements(), + RevlogType::Manifestlog, + )?; let res: Vec<_> = take(&mut ds_status.unsure) .into_par_iter() .map(|to_check| {