changeset 44048:de5d34ca01bd

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
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 09 Jan 2020 10:17:10 -0500
parents 4322de8f7016
children 6cfaebb625d3
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()