Patchwork D7818: py3: byteify the opener option to use `rust.index` to allow Rust revlogs

login
register
mail settings
Submitter phabricator
Date Jan. 9, 2020, 3:20 p.m.
Message ID <differential-rev-PHID-DREV-esiv7gz7nt4vc2ywzvfs-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/44236/
State Superseded
Headers show

Comments

phabricator - Jan. 9, 2020, 3:20 p.m.
mharbison72 created this revision.
Herald added a reviewer: indygreg.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  It looks like this corresponds to the byteified key written in localrepo in
  8042856c90b6 <https://phab.mercurial-scm.org/rHG8042856c90b6ab07437c7ddd6dd9f6d18d37d3d7>.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/revlog.py

CHANGE DETAILS




To: mharbison72, indygreg, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -592,7 +592,7 @@ 
         self._storedeltachains = True
 
         self._io = revlogio()
-        if rustrevlog is not None and self.opener.options.get('rust.index'):
+        if rustrevlog is not None and self.opener.options.get(b'rust.index'):
             self._io = rustrevlogio()
         if self.version == REVLOGV0:
             self._io = revlogoldio()