Submitter | phabricator |
---|---|
Date | Jan. 13, 2020, 2:20 p.m. |
Message ID | <fe6a2307482971b2651b0ea02f8dea1b@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/44273/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -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):