mercurial/debugcommands.py
changeset 45997 7c539f0febbe
parent 45942 89a2afe31e82
child 46030 2cf61e66c6d0
--- a/mercurial/debugcommands.py	Mon Nov 30 19:26:54 2020 +0100
+++ b/mercurial/debugcommands.py	Mon Nov 30 14:06:45 2020 +0100
@@ -3838,6 +3838,7 @@
         (b'', b'backup', True, _(b'keep the old repository content around')),
         (b'', b'changelog', None, _(b'select the changelog for upgrade')),
         (b'', b'manifest', None, _(b'select the manifest for upgrade')),
+        (b'', b'filelogs', None, _(b'select all filelogs for upgrade')),
     ],
 )
 def debugupgraderepo(ui, repo, run=False, optimize=None, backup=True, **opts):
@@ -3866,6 +3867,8 @@
       * `--no-manifest`: optimize all revlog but the manifest
       * `--changelog`: optimize the changelog only
       * `--no-changelog --no-manifest`: optimize filelogs only
+      * `--filelogs`: optimize the filelogs only
+      * `--no-changelog --no-manifest --no-filelogs`: skip all filelog optimisation
     """
     return upgrade.upgraderepo(
         ui, repo, run=run, optimize=optimize, backup=backup, **opts