Mercurial > public > mercurial-scm > hg
diff mercurial/localrepo.py @ 46627: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 | c3773636ddbb |
line wrap: on
line diff
--- a/mercurial/localrepo.py Wed Mar 03 14:00:45 2021 +0100 +++ b/mercurial/localrepo.py Wed Mar 03 12:30:23 2021 +0100 @@ -1003,7 +1003,7 @@ if requirementsmod.REVLOGV2_REQUIREMENT in requirements: options[b'revlogv2'] = True - if b'generaldelta' in requirements: + if requirementsmod.GENERALDELTA_REQUIREMENT in requirements: options[b'generaldelta'] = True # experimental config: format.chunkcachesize @@ -1200,7 +1200,7 @@ # chains), and the code was deleted in 4.6. supportedformats = { requirementsmod.REVLOGV1_REQUIREMENT, - b'generaldelta', + requirementsmod.GENERALDELTA_REQUIREMENT, requirementsmod.TREEMANIFEST_REQUIREMENT, requirementsmod.COPIESSDC_REQUIREMENT, requirementsmod.REVLOGV2_REQUIREMENT, @@ -3442,7 +3442,7 @@ requirements.add(b'exp-compression-%s' % compengine) if scmutil.gdinitconfig(ui): - requirements.add(b'generaldelta') + requirements.add(requirementsmod.GENERALDELTA_REQUIREMENT) if ui.configbool(b'format', b'sparse-revlog'): requirements.add(requirementsmod.SPARSEREVLOG_REQUIREMENT) @@ -3460,7 +3460,7 @@ if revlogv2 == b'enable-unstable-format-and-corrupt-my-data': requirements.remove(requirementsmod.REVLOGV1_REQUIREMENT) # generaldelta is implied by revlogv2. - requirements.discard(b'generaldelta') + requirements.discard(requirementsmod.GENERALDELTA_REQUIREMENT) requirements.add(requirementsmod.REVLOGV2_REQUIREMENT) # experimental config: format.internal-phase if ui.configbool(b'format', b'internal-phase'):