py3: byteify the opener option to use `rust.index` to allow Rust revlogs
authorMatt Harbison <matt_harbison@yahoo.com>
Thu, 09 Jan 2020 10:17:10 -0500
changeset 44047 de5d34ca01bd
parent 44046 4322de8f7016
child 44049 6cfaebb625d3
py3: byteify the opener option to use `rust.index` to allow Rust revlogs It looks like this corresponds to the byteified key written in localrepo in 8042856c90b6. Differential Revision: https://phab.mercurial-scm.org/D7818
mercurial/revlog.py
--- a/mercurial/revlog.py	Fri Dec 27 21:11:36 2019 -0800
+++ b/mercurial/revlog.py	Thu Jan 09 10:17:10 2020 -0500
@@ -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()