Mercurial > public > mercurial-scm > hg
comparison mercurial/revlog.py @ 44047: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 | ab595920de0e |
children | 612225e994ff |
comparison
equal
deleted
inserted
replaced
44046:4322de8f7016 | 44047:de5d34ca01bd |
---|---|
590 self._sparserevlog = False | 590 self._sparserevlog = False |
591 | 591 |
592 self._storedeltachains = True | 592 self._storedeltachains = True |
593 | 593 |
594 self._io = revlogio() | 594 self._io = revlogio() |
595 if rustrevlog is not None and self.opener.options.get('rust.index'): | 595 if rustrevlog is not None and self.opener.options.get(b'rust.index'): |
596 self._io = rustrevlogio() | 596 self._io = rustrevlogio() |
597 if self.version == REVLOGV0: | 597 if self.version == REVLOGV0: |
598 self._io = revlogoldio() | 598 self._io = revlogoldio() |
599 try: | 599 try: |
600 d = self._io.parseindex(indexdata, self._inline) | 600 d = self._io.parseindex(indexdata, self._inline) |