--- a/rust/hg-core/src/revlog/filelog.rs Thu Aug 10 11:00:34 2023 +0200
+++ b/rust/hg-core/src/revlog/filelog.rs Thu Aug 10 11:01:07 2023 +0200
@@ -9,6 +9,8 @@
use crate::utils::files::get_path_from_bytes;
use crate::utils::hg_path::HgPath;
use crate::utils::SliceExt;
+use crate::Graph;
+use crate::GraphError;
use crate::UncheckedRevision;
use std::path::PathBuf;
@@ -18,6 +20,12 @@
revlog: Revlog,
}
+impl Graph for Filelog {
+ fn parents(&self, rev: Revision) -> Result<[Revision; 2], GraphError> {
+ self.revlog.parents(rev)
+ }
+}
+
impl Filelog {
pub fn open_vfs(
store_vfs: &crate::vfs::Vfs<'_>,