diff rust/hg-core/src/revlog.rs @ 47961:4d2a5ca060e3

rust: Add a Filelog struct that wraps Revlog Some filelog-specific logic is moved from code `rhg cat` into this struct where it can better be reused. Additionally, a missing end delimiter for metadata causes an error to be returned instead of being silently ignored. Differential Revision: https://phab.mercurial-scm.org/D11408
author Simon Sapin <simon.sapin@octobus.net>
date Mon, 13 Sep 2021 15:42:39 +0200
parents e8ae91b1a63d
children
line wrap: on
line diff
--- a/rust/hg-core/src/revlog.rs	Mon Sep 13 13:45:10 2021 +0200
+++ b/rust/hg-core/src/revlog.rs	Mon Sep 13 15:42:39 2021 +0200
@@ -11,6 +11,7 @@
 pub mod path_encode;
 pub use node::{FromHexError, Node, NodePrefix};
 pub mod changelog;
+pub mod filelog;
 pub mod index;
 pub mod manifest;
 pub mod patch;