revlogv2: no longer attempt to use inline for new revlog
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 04 May 2021 02:55:56 +0200
changeset 47261 80164d50ae3d
parent 47260 ccdd280d1d0d
child 47262 468e451fc0de
revlogv2: no longer attempt to use inline for new revlog revlogv2 steered away for the inline feature. Differential Revision: https://phab.mercurial-scm.org/D10658
mercurial/revlog.py
tests/test-revlog-v2.t
--- a/mercurial/revlog.py	Tue May 04 02:52:24 2021 +0200
+++ b/mercurial/revlog.py	Tue May 04 02:55:56 2021 +0200
@@ -459,7 +459,7 @@
         opts = self.opener.options
 
         if b'revlogv2' in opts:
-            new_header = REVLOGV2 | FLAG_INLINE_DATA
+            new_header = REVLOGV2
         elif b'revlogv1' in opts:
             new_header = REVLOGV1 | FLAG_INLINE_DATA
             if b'generaldelta' in opts:
--- a/tests/test-revlog-v2.t	Tue May 04 02:52:24 2021 +0200
+++ b/tests/test-revlog-v2.t	Tue May 04 02:55:56 2021 +0200
@@ -61,8 +61,8 @@
 
   $ f --hexdump --bytes 4 .hg/store/00changelog.i
   .hg/store/00changelog.i:
-  0000: 00 01 de ad                                     |....|
+  0000: 00 00 de ad                                     |....|
 
   $ f --hexdump --bytes 4 .hg/store/data/foo.i
   .hg/store/data/foo.i:
-  0000: 00 01 de ad                                     |....|
+  0000: 00 00 de ad                                     |....|