diff mercurial/wireprotov1server.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 ee91966aec0f
children d4ba4d51f85f
line wrap: on
line diff
--- a/mercurial/wireprotov1server.py	Wed Mar 03 14:00:45 2021 +0100
+++ b/mercurial/wireprotov1server.py	Wed Mar 03 12:30:23 2021 +0100
@@ -109,7 +109,7 @@
     4. server.bundle1
     """
     ui = repo.ui
-    gd = b'generaldelta' in repo.requirements
+    gd = requirementsmod.GENERALDELTA_REQUIREMENT in repo.requirements
 
     if gd:
         v = ui.configbool(b'server', b'bundle1gd.%s' % action)