changeset 49143:b5e226015a14

rust-filelog: don't use persistent nodemap (to match Python) Differential Revision: https://phab.mercurial-scm.org/D12558
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 14 Apr 2022 09:09:45 -0700
parents bfc117647c71
children 399439c12223
files rust/hg-core/src/revlog/filelog.rs
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/filelog.rs	Tue Apr 12 11:40:37 2022 -0700
+++ b/rust/hg-core/src/revlog/filelog.rs	Thu Apr 14 09:09:45 2022 -0700
@@ -1,6 +1,5 @@
 use crate::errors::HgError;
 use crate::repo::Repo;
-use crate::requirements;
 use crate::revlog::path_encode::path_encode;
 use crate::revlog::revlog::RevlogEntry;
 use crate::revlog::revlog::{Revlog, RevlogError};
@@ -21,11 +20,7 @@
     pub fn open(repo: &Repo, file_path: &HgPath) -> Result<Self, HgError> {
         let index_path = store_path(file_path, b".i");
         let data_path = store_path(file_path, b".d");
-        let use_nodemap = repo
-            .requirements()
-            .contains(requirements::NODEMAP_REQUIREMENT);
-        let revlog =
-            Revlog::open(repo, index_path, Some(&data_path), use_nodemap)?;
+        let revlog = Revlog::open(repo, index_path, Some(&data_path), false)?;
         Ok(Self { revlog })
     }