mercurial/debugcommands.py
changeset 42831 908ff446590e
parent 42830 cf2b765cecd7
child 42893 34a46d48d24e
equal deleted inserted replaced
42830:cf2b765cecd7 42831:908ff446590e
  2846 
  2846 
  2847 @command('debugupgraderepo', [
  2847 @command('debugupgraderepo', [
  2848     ('o', 'optimize', [], _('extra optimization to perform'), _('NAME')),
  2848     ('o', 'optimize', [], _('extra optimization to perform'), _('NAME')),
  2849     ('', 'run', False, _('performs an upgrade')),
  2849     ('', 'run', False, _('performs an upgrade')),
  2850     ('', 'backup', True, _('keep the old repository content around')),
  2850     ('', 'backup', True, _('keep the old repository content around')),
       
  2851     ('', 'changelog', None, _('select the changelog for upgrade')),
  2851     ('', 'manifest', None, _('select the manifest for upgrade')),
  2852     ('', 'manifest', None, _('select the manifest for upgrade')),
  2852 ])
  2853 ])
  2853 def debugupgraderepo(ui, repo, run=False, optimize=None, backup=True, **opts):
  2854 def debugupgraderepo(ui, repo, run=False, optimize=None, backup=True, **opts):
  2854     """upgrade a repository to use different features
  2855     """upgrade a repository to use different features
  2855 
  2856 
  2872     By default, all revlog will be upgraded. You can restrict this using flag
  2873     By default, all revlog will be upgraded. You can restrict this using flag
  2873     such as `--manifest`:
  2874     such as `--manifest`:
  2874 
  2875 
  2875       * `--manifest`: only optimize the manifest
  2876       * `--manifest`: only optimize the manifest
  2876       * `--no-manifest`: optimize all revlog but the manifest
  2877       * `--no-manifest`: optimize all revlog but the manifest
       
  2878       * `--changelog`: optimize the changelog only
       
  2879       * `--no-changelog --no-manifest`: optimize filelogs only
  2877     """
  2880     """
  2878     return upgrade.upgraderepo(ui, repo, run=run, optimize=optimize,
  2881     return upgrade.upgraderepo(ui, repo, run=run, optimize=optimize,
  2879                                backup=backup, **opts)
  2882                                backup=backup, **opts)
  2880 
  2883 
  2881 @command('debugwalk', cmdutil.walkopts, _('[OPTION]... [FILE]...'),
  2884 @command('debugwalk', cmdutil.walkopts, _('[OPTION]... [FILE]...'),