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, 6:13 p.m.
Message ID <ee5a48cd7a7f2975b9f2e241d89ae9d5@localhost.localdomain>
Download mbox | patch
Permalink /patch/44237/
State Not Applicable
Headers show

Comments

phabricator - Jan. 9, 2020, 6:13 p.m.
Closed by commit rHGde5d34ca01bd: py3: byteify the opener option to use `rust.index` to allow Rust revlogs (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7818?vs=19131&id=19132

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

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()