Mercurial > hg
comparison mercurial/revlog.py @ 47261:80164d50ae3d
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
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 04 May 2021 02:55:56 +0200 |
parents | 07641bafa646 |
children | 6c84fc9c9a90 |
comparison
equal
deleted
inserted
replaced
47260:ccdd280d1d0d | 47261:80164d50ae3d |
---|---|
457 """ | 457 """ |
458 mmapindexthreshold = None | 458 mmapindexthreshold = None |
459 opts = self.opener.options | 459 opts = self.opener.options |
460 | 460 |
461 if b'revlogv2' in opts: | 461 if b'revlogv2' in opts: |
462 new_header = REVLOGV2 | FLAG_INLINE_DATA | 462 new_header = REVLOGV2 |
463 elif b'revlogv1' in opts: | 463 elif b'revlogv1' in opts: |
464 new_header = REVLOGV1 | FLAG_INLINE_DATA | 464 new_header = REVLOGV1 | FLAG_INLINE_DATA |
465 if b'generaldelta' in opts: | 465 if b'generaldelta' in opts: |
466 new_header |= FLAG_GENERALDELTA | 466 new_header |= FLAG_GENERALDELTA |
467 elif b'revlogv0' in self.opener.options: | 467 elif b'revlogv0' in self.opener.options: |