Patchwork D12558: rust-filelog: don't use persistent nodemap (to match Python)

login
register
mail settings
Submitter phabricator
Date April 14, 2022, 4:13 p.m.
Message ID <differential-rev-PHID-DREV-oeq7vyta75darvvkvili-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50906/
State New
Headers show

Comments

phabricator - April 14, 2022, 4:13 p.m.
martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D12558

AFFECTED FILES
  rust/hg-core/src/revlog/filelog.rs

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/rust/hg-core/src/revlog/filelog.rs b/rust/hg-core/src/revlog/filelog.rs
--- a/rust/hg-core/src/revlog/filelog.rs
+++ b/rust/hg-core/src/revlog/filelog.rs
@@ -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 })
     }