Mercurial > public > mercurial-scm > hg-stable
diff mercurial/upgrade.py @ 46208:083438d6f403
upgrade: drop support for old style optimization names
Old style optimization names like `redeltaparent` were converted into
`re-delta-parent` more than two years ago. The old names were kept around for
sometime because of BC reasons.
Refer 5608b5a6c3231c4ec771171cc3079142c7672be6. The commit states the map is
there for a while and we can drop them as the underlying command is a debug
command.
Differential Revision: https://phab.mercurial-scm.org/D9614
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Wed, 16 Dec 2020 12:39:15 +0530 |
parents | e2139e071b5c |
children | a51d345f1404 |
line wrap: on
line diff
--- a/mercurial/upgrade.py Mon Dec 14 16:15:01 2020 +0530 +++ b/mercurial/upgrade.py Wed Dec 16 12:39:15 2020 +0530 @@ -22,19 +22,6 @@ allformatvariant = upgrade_actions.allformatvariant -# search without '-' to support older form on newer client. -# -# We don't enforce backward compatibility for debug command so this -# might eventually be dropped. However, having to use two different -# forms in script when comparing result is anoying enough to add -# backward compatibility for a while. -legacy_opts_map = { - b'redeltaparent': b're-delta-parent', - b'redeltamultibase': b're-delta-multibase', - b'redeltaall': b're-delta-all', - b'redeltafulladd': b're-delta-fulladd', -} - def upgraderepo( ui, @@ -48,8 +35,7 @@ ): """Upgrade a repository in place.""" if optimize is None: - optimize = [] - optimize = {legacy_opts_map.get(o, o) for o in optimize} + optimize = {} repo = repo.unfiltered() revlogs = set(upgrade_engine.UPGRADE_ALL_REVLOGS)