Mercurial > public > mercurial-scm > hg
diff rust/hg-core/src/operations/debugdata.rs @ 52156: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 | 69b804c8e09e |
children | bd8081e9fd62 |
line wrap: on
line diff
--- a/rust/hg-core/src/operations/debugdata.rs Wed Sep 25 18:10:03 2024 +0200 +++ b/rust/hg-core/src/operations/debugdata.rs Wed Sep 25 18:24:15 2024 +0200 @@ -7,6 +7,7 @@ use crate::errors::HgError; use crate::repo::Repo; +use crate::revlog::options::default_revlog_options; use crate::revlog::Revlog; use crate::{exit_codes, RevlogError, RevlogType}; @@ -31,7 +32,11 @@ &repo.store_vfs(), index_file, None, - repo.default_revlog_options(RevlogType::Changelog)?, + default_revlog_options( + repo.config(), + repo.requirements(), + RevlogType::Changelog, + )?, )?; let rev = crate::revset::resolve_rev_number_or_hex_prefix(revset, &revlog)?;