mercurial/upgrade.py
changeset 46209 a51d345f1404
parent 46208 083438d6f403
child 46210 6b40aac4da8e
--- 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