diff mercurial/bundlecaches.py @ 47342:dc3800569157

revlogv2: make sure bundling pick a compatible bundle format Before this change, revlog-v2 repository where bundled using the incompatible "v1" format. Differential Revision: https://phab.mercurial-scm.org/D10802
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 30 May 2021 22:12:48 +0200
parents f4c325bf80fc
children baddab229b86
line wrap: on
line diff
--- a/mercurial/bundlecaches.py	Sun May 30 20:42:51 2021 +0200
+++ b/mercurial/bundlecaches.py	Sun May 30 22:12:48 2021 +0200
@@ -167,6 +167,8 @@
             # Generaldelta repos require v2.
             if requirementsmod.GENERALDELTA_REQUIREMENT in repo.requirements:
                 version = b'v2'
+            elif requirementsmod.REVLOGV2_REQUIREMENT in repo.requirements:
+                version = b'v2'
             # Modern compression engines require v2.
             if compression not in _bundlespecv1compengines:
                 version = b'v2'