# HG changeset patch
# User Raphaël Gomès <rgomes@octobus.net>
# Date 2021-02-19 10:04:17
# Node ID c8bb7b89179e8d0dc437fb04f94be8659a8cd7f3
# Parent  45f0d52976983e5fb7434c0d4630bbed0c34401b

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

diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -639,7 +639,11 @@ class revlog(object):
                     % (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