mercurial/bundlecaches.py
changeset 46666 f4c325bf80fc
parent 45808 80f32ec8653a
child 47350 dc3800569157
--- 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: