server/repository.py
changeset 9507 540cb068a7f9
parent 9506 7f6883783969
child 9510 a5231a557ac0
equal deleted inserted replaced
9506:7f6883783969 9507:540cb068a7f9
   499 
   499 
   500         This is a public method, not requiring a session id.
   500         This is a public method, not requiring a session id.
   501 
   501 
   502         This method is deprecated in favor of using _cw.call_service('repo_stats')
   502         This method is deprecated in favor of using _cw.call_service('repo_stats')
   503         """
   503         """
   504         with self.internal_session() as session:
   504         with self.internal_cnx() as cnx:
   505             return session.call_service('repo_stats')
   505             return cnx.call_service('repo_stats')
   506 
   506 
   507     @deprecated("[3.19] use _cw.call_service('repo_gc_stats'")
   507     @deprecated("[3.19] use _cw.call_service('repo_gc_stats'")
   508     def gc_stats(self, nmax=20):
   508     def gc_stats(self, nmax=20):
   509         """Return a dictionary containing some statistics about the repository
   509         """Return a dictionary containing some statistics about the repository
   510         memory usage.
   510         memory usage.