mercurial/debugcommands.py
changeset 33438 8056481caa81
parent 33336 4672db164c98
child 33493 9a9f95214f46
equal deleted inserted replaced
33437:0720e6265c8a 33438:8056481caa81
  2175         displayer.close()
  2175         displayer.close()
  2176 
  2176 
  2177 @command('debugupdatecaches', [])
  2177 @command('debugupdatecaches', [])
  2178 def debugupdatecaches(ui, repo, *pats, **opts):
  2178 def debugupdatecaches(ui, repo, *pats, **opts):
  2179     """warm all known caches in the repository"""
  2179     """warm all known caches in the repository"""
  2180     with repo.wlock():
  2180     with repo.wlock(), repo.lock():
  2181         with repo.lock():
  2181         repo.updatecaches()
  2182             repo.updatecaches()
       
  2183 
  2182 
  2184 @command('debugupgraderepo', [
  2183 @command('debugupgraderepo', [
  2185     ('o', 'optimize', [], _('extra optimization to perform'), _('NAME')),
  2184     ('o', 'optimize', [], _('extra optimization to perform'), _('NAME')),
  2186     ('', 'run', False, _('performs an upgrade')),
  2185     ('', 'run', False, _('performs an upgrade')),
  2187 ])
  2186 ])