Patchwork D8413: nodemap: access the mmap opener option using bytes

login
register
mail settings
Submitter phabricator
Date April 14, 2020, 7:02 p.m.
Message ID <b7729a89bd459f3e08cba666f8677f96@localhost.localdomain>
Download mbox | patch
Permalink /patch/46105/
State Not Applicable
Headers show

Comments

phabricator - April 14, 2020, 7:02 p.m.
Closed by commit rHG0792ad55e533: nodemap: access the mmap opener option using bytes (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8413?vs=21061&id=21076

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8413/new/

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

AFFECTED FILES
  mercurial/revlogutils/nodemap.py

CHANGE DETAILS




To: marmoute, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/mercurial/revlogutils/nodemap.py b/mercurial/revlogutils/nodemap.py
--- a/mercurial/revlogutils/nodemap.py
+++ b/mercurial/revlogutils/nodemap.py
@@ -48,7 +48,7 @@ 
     docket.data_unused = data_unused
 
     filename = _rawdata_filepath(revlog, docket)
-    use_mmap = revlog.opener.options.get("exp-persistent-nodemap.mmap")
+    use_mmap = revlog.opener.options.get(b"exp-persistent-nodemap.mmap")
     try:
         with revlog.opener(filename) as fd:
             if use_mmap:
@@ -132,7 +132,7 @@ 
     can_incremental = util.safehasattr(revlog.index, "nodemap_data_incremental")
     ondisk_docket = revlog._nodemap_docket
     feed_data = util.safehasattr(revlog.index, "update_nodemap_data")
-    use_mmap = revlog.opener.options.get("exp-persistent-nodemap.mmap")
+    use_mmap = revlog.opener.options.get(b"exp-persistent-nodemap.mmap")
 
     data = None
     # first attemp an incremental update of the data