diff rust/hg-core/src/revlog/filelog.rs @ 52757:5af65969edaf

rust-filelog: make Filelog::revlog pub(crate) This matches Changelog and Manifestlog. I need to access the revlog for the implementation of rhg annotate.
author Mitchell Kember <mkember@janestreet.com>
date Fri, 03 Jan 2025 10:21:15 -0500
parents b0b6c28b340b
children 94e2547e6f3d
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/filelog.rs	Wed Feb 05 17:35:52 2025 -0500
+++ b/rust/hg-core/src/revlog/filelog.rs	Fri Jan 03 10:21:15 2025 -0500
@@ -20,7 +20,7 @@
 /// A specialized `Revlog` to work with file data logs.
 pub struct Filelog {
     /// The generic `revlog` format.
-    revlog: Revlog,
+    pub(crate) revlog: Revlog,
 }
 
 impl Graph for Filelog {
@@ -109,7 +109,7 @@
     get_path_from_bytes(&encoded_bytes).into()
 }
 
-pub struct FilelogEntry<'a>(RevlogEntry<'a>);
+pub struct FilelogEntry<'a>(pub(crate) RevlogEntry<'a>);
 
 impl FilelogEntry<'_> {
     /// `self.data()` can be expensive, with decompression and delta