Mercurial > hg
diff mercurial/debugcommands.py @ 42831:908ff446590e
upgrade: add an argument to control changelog upgrade
Same as for `--manifest` we can now select more selection.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 30 Jul 2019 17:25:16 +0200 |
parents | cf2b765cecd7 |
children | 34a46d48d24e |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Tue Jul 30 00:35:52 2019 +0200 +++ b/mercurial/debugcommands.py Tue Jul 30 17:25:16 2019 +0200 @@ -2848,6 +2848,7 @@ ('o', 'optimize', [], _('extra optimization to perform'), _('NAME')), ('', 'run', False, _('performs an upgrade')), ('', 'backup', True, _('keep the old repository content around')), + ('', 'changelog', None, _('select the changelog for upgrade')), ('', 'manifest', None, _('select the manifest for upgrade')), ]) def debugupgraderepo(ui, repo, run=False, optimize=None, backup=True, **opts): @@ -2874,6 +2875,8 @@ * `--manifest`: only optimize the manifest * `--no-manifest`: optimize all revlog but the manifest + * `--changelog`: optimize the changelog only + * `--no-changelog --no-manifest`: optimize filelogs only """ return upgrade.upgraderepo(ui, repo, run=run, optimize=optimize, backup=backup, **opts)