diff mercurial/localrepo.py @ 47238:6597255a4f94

revlogv2: track current index size in the docket This help use to fix transaction safety on repos. See next changesets for details. Differential Revision: https://phab.mercurial-scm.org/D10628
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 03 May 2021 12:34:52 +0200
parents bcafcd779d2e
children ccdd280d1d0d
line wrap: on
line diff
--- a/mercurial/localrepo.py	Mon May 03 12:34:41 2021 +0200
+++ b/mercurial/localrepo.py	Mon May 03 12:34:52 2021 +0200
@@ -739,6 +739,8 @@
 
     if requirementsmod.REVLOGV2_REQUIREMENT in requirements:
         features.add(repository.REPO_FEATURE_SIDE_DATA)
+        # the revlogv2 docket introduced race condition that we need to fix
+        features.discard(repository.REPO_FEATURE_STREAM_CLONE)
 
     # The cache vfs is used to manage cache files.
     cachevfs = vfsmod.vfs(cachepath, cacheaudited=True)