mercurial/exchangev2.py
changeset 46626 ee91966aec0f
parent 46509 7a93b7b3dc2d
child 46711 a41565bef69f
--- a/mercurial/exchangev2.py	Thu Feb 18 15:07:45 2021 +0100
+++ b/mercurial/exchangev2.py	Wed Mar 03 14:00:45 2021 +0100
@@ -22,6 +22,7 @@
     narrowspec,
     phases,
     pycompat,
+    requirements as requirementsmod,
     setdiscovery,
 )
 from .interfaces import repository
@@ -183,7 +184,7 @@
 
     # TODO This is super hacky. There needs to be a storage API for this. We
     # also need to check for compatibility with the remote.
-    if b'revlogv1' not in repo.requirements:
+    if requirementsmod.REVLOGV1_REQUIREMENT not in repo.requirements:
         return False
 
     return True