diff mercurial/changegroup.py @ 46666:f4c325bf80fc

requirements: also add a generaldelta constant Continue the cleanup to the remaining requirements Differential Revision: https://phab.mercurial-scm.org/D10106
author Rapha?l Gom?s <rgomes@octobus.net>
date Wed, 03 Mar 2021 12:30:23 +0100
parents 357d2ea95ce9
children a41565bef69f
line wrap: on
line diff
--- 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)