mercurial/changegroup.py
changeset 46627 f4c325bf80fc
parent 46624 357d2ea95ce9
child 46711 a41565bef69f
--- a/mercurial/changegroup.py	Wed Mar 03 14:00:45 2021 +0100
+++ b/mercurial/changegroup.py	Wed Mar 03 12:30:23 2021 +0100
@@ -1549,7 +1549,7 @@
     # will support. For example, all hg versions that support generaldelta also
     # support changegroup 02.
     versions = supportedoutgoingversions(repo)
-    if b'generaldelta' in repo.requirements:
+    if requirements.GENERALDELTA_REQUIREMENT in repo.requirements:
         versions.discard(b'01')
     assert versions
     return min(versions)