Changeset View
Changeset View
Standalone View
Standalone View
mercurial/upgrade_utils/actions.py
Show First 20 Lines • Show All 211 Lines • ▼ Show 20 Line(s) | upgrademessage = _( | ||||
b'operations should be improved' | b'operations should be improved' | ||||
) | ) | ||||
@registerformatvariant | @registerformatvariant | ||||
class dotencode(requirementformatvariant): | class dotencode(requirementformatvariant): | ||||
name = b'dotencode' | name = b'dotencode' | ||||
_requirement = b'dotencode' | _requirement = requirements.DOTENCODE_REQUIREMENT | ||||
default = True | default = True | ||||
description = _( | description = _( | ||||
b'storage of filenames beginning with a period or ' | b'storage of filenames beginning with a period or ' | ||||
b'space may not work correctly' | b'space may not work correctly' | ||||
) | ) | ||||
▲ Show 20 Lines • Show All 700 Lines • ▼ Show 20 Line(s) | def supporteddestrequirements(repo): | ||||
"""Obtain requirements that upgrade supports in the destination. | """Obtain requirements that upgrade supports in the destination. | ||||
If the result of the upgrade would create requirements not in this set, | If the result of the upgrade would create requirements not in this set, | ||||
the upgrade is disallowed. | the upgrade is disallowed. | ||||
Extensions should monkeypatch this to add their custom requirements. | Extensions should monkeypatch this to add their custom requirements. | ||||
""" | """ | ||||
supported = { | supported = { | ||||
b'dotencode', | requirements.DOTENCODE_REQUIREMENT, | ||||
b'fncache', | b'fncache', | ||||
requirements.GENERALDELTA_REQUIREMENT, | requirements.GENERALDELTA_REQUIREMENT, | ||||
requirements.REVLOGV1_REQUIREMENT, | requirements.REVLOGV1_REQUIREMENT, | ||||
b'store', | b'store', | ||||
requirements.SPARSEREVLOG_REQUIREMENT, | requirements.SPARSEREVLOG_REQUIREMENT, | ||||
requirements.SIDEDATA_REQUIREMENT, | requirements.SIDEDATA_REQUIREMENT, | ||||
requirements.COPIESSDC_REQUIREMENT, | requirements.COPIESSDC_REQUIREMENT, | ||||
requirements.NODEMAP_REQUIREMENT, | requirements.NODEMAP_REQUIREMENT, | ||||
Show All 14 Lines | def allowednewrequirements(repo): | ||||
This is used to disallow proposed requirements from being added when | This is used to disallow proposed requirements from being added when | ||||
they weren't present before. | they weren't present before. | ||||
We use a list of allowed requirement additions instead of a list of known | We use a list of allowed requirement additions instead of a list of known | ||||
bad additions because the whitelist approach is safer and will prevent | bad additions because the whitelist approach is safer and will prevent | ||||
future, unknown requirements from accidentally being added. | future, unknown requirements from accidentally being added. | ||||
""" | """ | ||||
supported = { | supported = { | ||||
b'dotencode', | requirements.DOTENCODE_REQUIREMENT, | ||||
b'fncache', | b'fncache', | ||||
pulkit: hm, seems like an unrelated change. | |||||
Done ReplyHa! Yeah rebasing all of this was evil, this got through. Alphare: Ha! Yeah rebasing all of this was evil, this got through. | |||||
requirements.GENERALDELTA_REQUIREMENT, | requirements.GENERALDELTA_REQUIREMENT, | ||||
requirements.SPARSEREVLOG_REQUIREMENT, | requirements.SPARSEREVLOG_REQUIREMENT, | ||||
requirements.SIDEDATA_REQUIREMENT, | requirements.SIDEDATA_REQUIREMENT, | ||||
requirements.COPIESSDC_REQUIREMENT, | requirements.COPIESSDC_REQUIREMENT, | ||||
requirements.NODEMAP_REQUIREMENT, | requirements.NODEMAP_REQUIREMENT, | ||||
requirements.SHARESAFE_REQUIREMENT, | requirements.SHARESAFE_REQUIREMENT, | ||||
} | } | ||||
for name in compression.compengines: | for name in compression.compengines: | ||||
Show All 34 Lines |
hm, seems like an unrelated change.