diff rust/hg-core/src/revlog/manifest.rs @ 45806:7252f5237352

hg-core: fix path encoding usage 1. Hash encoded path are in `.hg/store/dh` instead of `.hg/store/data`. 2. Path encoded index and data files may not have the same parent path. It is not just about replacing `.i` by `.d` Differential Revision: https://phab.mercurial-scm.org/D9121
author Antoine cezar<acezar@chwitlabs.fr>
date Mon, 28 Sep 2020 17:13:15 +0200
parents f2de24c2b1f6
children 88e741bf2d93
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/manifest.rs	Mon Oct 26 11:45:32 2020 +0100
+++ b/rust/hg-core/src/revlog/manifest.rs	Mon Sep 28 17:13:15 2020 +0200
@@ -13,7 +13,7 @@
     /// Open the `manifest` of a repository given by its root.
     pub fn open(root: &PathBuf) -> Result<Self, RevlogError> {
         let index_file = root.join(".hg/store/00manifest.i");
-        let revlog = Revlog::open(&index_file)?;
+        let revlog = Revlog::open(&index_file, None)?;
         Ok(Self { revlog })
     }