mercurial/debugcommands.py
changeset 46208 083438d6f403
parent 46201 b986e3342827
child 46211 2dbe6053d49a
--- a/mercurial/debugcommands.py	Mon Dec 14 16:15:01 2020 +0530
+++ b/mercurial/debugcommands.py	Wed Dec 16 12:39:15 2020 +0530
@@ -3933,7 +3933,7 @@
       * `--no-changelog --no-manifest --no-filelogs`: skip all filelog optimisation
     """
     return upgrade.upgraderepo(
-        ui, repo, run=run, optimize=optimize, backup=backup, **opts
+        ui, repo, run=run, optimize=set(optimize), backup=backup, **opts
     )