mercurial/debugcommands.py
changeset 36958 b24cde12061b
parent 36957 c92d1d3c58ee
child 36960 efc4fb344c05
equal deleted inserted replaced
36957:c92d1d3c58ee 36958:b24cde12061b
  2480 
  2480 
  2481 @command('debugupdatecaches', [])
  2481 @command('debugupdatecaches', [])
  2482 def debugupdatecaches(ui, repo, *pats, **opts):
  2482 def debugupdatecaches(ui, repo, *pats, **opts):
  2483     """warm all known caches in the repository"""
  2483     """warm all known caches in the repository"""
  2484     with repo.wlock(), repo.lock():
  2484     with repo.wlock(), repo.lock():
  2485         repo.updatecaches()
  2485         repo.updatecaches(full=True)
  2486 
  2486 
  2487 @command('debugupgraderepo', [
  2487 @command('debugupgraderepo', [
  2488     ('o', 'optimize', [], _('extra optimization to perform'), _('NAME')),
  2488     ('o', 'optimize', [], _('extra optimization to perform'), _('NAME')),
  2489     ('', 'run', False, _('performs an upgrade')),
  2489     ('', 'run', False, _('performs an upgrade')),
  2490 ])
  2490 ])