diff rust/hg-core/src/revlog/changelog.rs @ 52171:7be39c5110c9

hg-core: add a complete VFS This will be used from Python in a later change. More changes are needed in hg-core and rhg to properly clean up the APIs of the old VFS implementation but it can be done when the dust settles and we start adding more functionality to the pure Rust VFS.
author Raphaël Gomès <rgomes@octobus.net>
date Mon, 29 Jul 2024 20:47:43 +0200
parents 6b7ffa3f9199
children a3fa37bdb7ec
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/changelog.rs	Mon Jul 29 20:28:42 2024 +0200
+++ b/rust/hg-core/src/revlog/changelog.rs	Mon Jul 29 20:47:43 2024 +0200
@@ -562,9 +562,7 @@
     fn test_data_from_rev_null() -> Result<(), RevlogError> {
         // an empty revlog will be enough for this case
         let temp = tempfile::tempdir().unwrap();
-        let vfs = VfsImpl {
-            base: temp.path().to_owned(),
-        };
+        let vfs = VfsImpl::new(temp.path().to_owned(), false);
         std::fs::write(temp.path().join("foo.i"), b"").unwrap();
         let revlog =
             Revlog::open(&vfs, "foo.i", None, RevlogOpenOptions::default())