##// END OF EJS Templates
rust: disable the RustIndex without persistent nodemap...
marmoute -
r52321:def497c7 default
parent child Browse files
Show More
@@ -1678,14 +1678,15 b' class revlog:'
1678 )
1678 )
1679
1679
1680 use_rust_index = False
1680 use_rust_index = False
1681 if rustrevlog is not None:
1681 if rustrevlog is not None and self._nodemap_file is not None:
1682 if self._nodemap_file is not None:
1682 # we would like to use the rust_index in all case, especially
1683 use_rust_index = True
1683 # because it is necessary for AncestorsIterator and LazyAncestors
1684 else:
1684 # since the 6.7 cycle.
1685 # Using the CIndex is not longer possible, as the
1685 #
1686 # `AncestorsIterator` and `LazyAncestors` classes now require
1686 # However, the performance impact of inconditionnaly building the
1687 # a Rust index for instantiation.
1687 # nodemap is currently a problem for non-persistent nodemap
1688 use_rust_index = True
1688 # repository.
1689 use_rust_index = True
1689
1690
1690 self._parse_index = parse_index_v1
1691 self._parse_index = parse_index_v1
1691 if self._format_version == REVLOGV0:
1692 if self._format_version == REVLOGV0:
@@ -311,8 +311,7 b' test revlog corruption'
311 $ cat start b > .hg/store/data/a.i
311 $ cat start b > .hg/store/data/a.i
312
312
313 $ hg verify -q
313 $ hg verify -q
314 a@1: broken revlog! (index a is corrupted) (no-rust !)
314 a@1: broken revlog! (index a is corrupted)
315 a@1: broken revlog! (abort: unexpected inline revlog length) (rust !)
316 warning: orphan data file 'data/a.i'
315 warning: orphan data file 'data/a.i'
317 not checking dirstate because of previous errors
316 not checking dirstate because of previous errors
318 1 warnings encountered!
317 1 warnings encountered!
General Comments 0
You need to be logged in to leave comments. Login now