rust-filelog: don't use persistent nodemap (to match Python)
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 14 Apr 2022 09:09:45 -0700
changeset 49143 b5e226015a14
parent 49142 bfc117647c71
child 49144 399439c12223
rust-filelog: don't use persistent nodemap (to match Python) Differential Revision: https://phab.mercurial-scm.org/D12558
rust/hg-core/src/revlog/filelog.rs
--- 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 })
     }