diff --git a/rust/hg-core/src/revlog/mod.rs b/rust/hg-core/src/revlog/mod.rs
--- a/rust/hg-core/src/revlog/mod.rs
+++ b/rust/hg-core/src/revlog/mod.rs
@@ -430,7 +430,9 @@ impl<'revlog> RevlogEntry<'revlog> {
self.p1 != NULL_REVISION
}
- pub fn p1_entry(&self) -> Result