--- a/mercurial/bundlecaches.py Wed Mar 03 14:00:45 2021 +0100
+++ b/mercurial/bundlecaches.py Wed Mar 03 12:30:23 2021 +0100
@@ -9,6 +9,7 @@
from . import (
error,
+ requirements as requirementsmod,
sslutil,
util,
)
@@ -164,7 +165,7 @@
compression = spec
version = b'v1'
# Generaldelta repos require v2.
- if b'generaldelta' in repo.requirements:
+ if requirementsmod.GENERALDELTA_REQUIREMENT in repo.requirements:
version = b'v2'
# Modern compression engines require v2.
if compression not in _bundlespecv1compengines: