diff rust/hg-core/src/operations/cat.rs @ 52290: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 37e9e6e1f470
line wrap: on
line diff
--- a/rust/hg-core/src/operations/cat.rs	Tue Nov 12 12:45:23 2024 +0100
+++ b/rust/hg-core/src/operations/cat.rs	Tue Oct 29 11:00:04 2024 +0100
@@ -87,7 +87,7 @@
     let manifest = repo.manifest_for_rev(rev.into())?;
     let node = *repo
         .changelog()?
-        .node_from_rev(rev.into())
+        .node_from_unchecked_rev(rev.into())
         .expect("should succeed when repo.manifest did");
     let mut results: Vec<(&'a HgPath, Vec<u8>)> = vec![];
     let mut found_any = false;