# HG changeset patch # User Pierre-Yves David # Date 1578294486 -3600 # Node ID 612225e994ff388e7c0d9b5bd72e036066b06891 # Parent 894c91c2e3635f70c1bb315d98dadc859bd021cd revlog: reorder a conditionnal about revlogio if we are using REVLOGV0, we will not use a rust based index. This small line movement make it clearer. Differential Revision: https://phab.mercurial-scm.org/D7830 diff -r 894c91c2e363 -r 612225e994ff mercurial/revlog.py --- a/mercurial/revlog.py Fri Jan 10 15:47:39 2020 -0800 +++ b/mercurial/revlog.py Mon Jan 06 08:08:06 2020 +0100 @@ -592,10 +592,10 @@ self._storedeltachains = True self._io = revlogio() - if rustrevlog is not None and self.opener.options.get(b'rust.index'): - self._io = rustrevlogio() if self.version == REVLOGV0: self._io = revlogoldio() + elif rustrevlog is not None and self.opener.options.get(b'rust.index'): + self._io = rustrevlogio() try: d = self._io.parseindex(indexdata, self._inline) except (ValueError, IndexError):