changeset 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 502e795b55ac
files mercurial/revlog.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Fri Feb 19 11:15:42 2021 +0100
+++ b/mercurial/revlog.py	Fri Feb 19 11:04:17 2021 +0100
@@ -639,7 +639,11 @@
                     % (flags >> 16, fmt, self.indexfile)
                 )
 
-            self._inline = versionflags & FLAG_INLINE_DATA
+            # There is a bug in the transaction handling when going from an
+            # inline revlog to a separate index and data file. Turn it off until
+            # it's fixed, since v2 revlogs sometimes get rewritten on exchange.
+            # See issue6485
+            self._inline = False
             # generaldelta implied by version 2 revlogs.
             self._generaldelta = True