mercurial/debugcommands.py
changeset 47298 e96f75857361
parent 47139 f58a13c52726
child 47351 3b9914b28133
equal deleted inserted replaced
47297:1337bfaa88ca 47298:e96f75857361
    89     vfs as vfsmod,
    89     vfs as vfsmod,
    90     wireprotoframing,
    90     wireprotoframing,
    91     wireprotoserver,
    91     wireprotoserver,
    92     wireprotov2peer,
    92     wireprotov2peer,
    93 )
    93 )
       
    94 from .interfaces import repository
    94 from .utils import (
    95 from .utils import (
    95     cborutil,
    96     cborutil,
    96     compression,
    97     compression,
    97     dateutil,
    98     dateutil,
    98     procutil,
    99     procutil,
  4045 
  4046 
  4046 @command(b'debugupdatecaches', [])
  4047 @command(b'debugupdatecaches', [])
  4047 def debugupdatecaches(ui, repo, *pats, **opts):
  4048 def debugupdatecaches(ui, repo, *pats, **opts):
  4048     """warm all known caches in the repository"""
  4049     """warm all known caches in the repository"""
  4049     with repo.wlock(), repo.lock():
  4050     with repo.wlock(), repo.lock():
  4050         repo.updatecaches(full=True)
  4051         repo.updatecaches(caches=repository.CACHES_ALL)
  4051 
  4052 
  4052 
  4053 
  4053 @command(
  4054 @command(
  4054     b'debugupgraderepo',
  4055     b'debugupgraderepo',
  4055     [
  4056     [