Mercurial > public > mercurial-scm > hg-stable
diff rust/hg-core/src/operations/debugdata.rs @ 52326:a3fa37bdb7ec
rust: normalize `_for_unchecked_rev` naming among revlogs and the index
This normalizes the naming scheme between the `Revlog`, `Changelog`, etc.
which is less suprising, though no real bugs could stem from this because of
the type signature mismatch.
The very high-level `Repo` object still uses an `UncheckedRevision` parameter
for its methods because that's what most callers will want.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Tue, 29 Oct 2024 11:00:04 +0100 |
parents | bd8081e9fd62 |
children |
line wrap: on
line diff
--- a/rust/hg-core/src/operations/debugdata.rs Tue Nov 12 12:45:23 2024 +0100 +++ b/rust/hg-core/src/operations/debugdata.rs Tue Oct 29 11:00:04 2024 +0100 @@ -40,6 +40,6 @@ )?; let rev = crate::revset::resolve_rev_number_or_hex_prefix(revset, &revlog)?; - let data = revlog.get_rev_data_for_checked_rev(rev)?; + let data = revlog.get_data(rev)?; Ok(data.into_owned()) }