--- a/mercurial/upgrade.py Wed Dec 16 12:39:15 2020 +0530
+++ b/mercurial/upgrade.py Wed Dec 16 14:06:24 2020 +0530
@@ -85,13 +85,7 @@
format_upgrades = upgrade_actions.find_format_upgrades(repo)
actions = upgrade_actions.determineactions(
- repo, format_upgrades, repo.requirements, newreqs
- )
- actions.extend(
- o
- for o in sorted(optimizations)
- # determineactions could have added optimisation
- if o not in actions
+ repo, format_upgrades, optimizations, repo.requirements, newreqs
)
removedreqs = repo.requirements - newreqs