comparison mercurial/revlog.py @ 46716:c8bb7b89179e

revlogv2: temporarily forbid inline revlogs See inline comments. I plan to fix the underlying issue before revlogv2 is stabilized. Differential Revision: https://phab.mercurial-scm.org/D10030
author Rapha?l Gom?s <rgomes@octobus.net>
date Fri, 19 Feb 2021 11:04:17 +0100
parents 45f0d5297698
children ba8e508a8e69
comparison
equal deleted inserted replaced
46715:45f0d5297698 46716:c8bb7b89179e
637 raise error.RevlogError( 637 raise error.RevlogError(
638 _(b'unknown flags (%#04x) in version %d revlog %s') 638 _(b'unknown flags (%#04x) in version %d revlog %s')
639 % (flags >> 16, fmt, self.indexfile) 639 % (flags >> 16, fmt, self.indexfile)
640 ) 640 )
641 641
642 self._inline = versionflags & FLAG_INLINE_DATA 642 # There is a bug in the transaction handling when going from an
643 # inline revlog to a separate index and data file. Turn it off until
644 # it's fixed, since v2 revlogs sometimes get rewritten on exchange.
645 # See issue6485
646 self._inline = False
643 # generaldelta implied by version 2 revlogs. 647 # generaldelta implied by version 2 revlogs.
644 self._generaldelta = True 648 self._generaldelta = True
645 649
646 else: 650 else:
647 raise error.RevlogError( 651 raise error.RevlogError(