equal
deleted
inserted
replaced
497 cwuser.properties |
497 cwuser.properties |
498 return cwuser |
498 return cwuser |
499 |
499 |
500 # public (dbapi) interface ################################################ |
500 # public (dbapi) interface ################################################ |
501 |
501 |
502 @deprecated("[3.19] use _cw.call_service('repo_stats'") |
502 @deprecated("[3.19] use _cw.call_service('repo_stats')") |
503 def stats(self): # XXX restrict to managers session? |
503 def stats(self): # XXX restrict to managers session? |
504 """Return a dictionary containing some statistics about the repository |
504 """Return a dictionary containing some statistics about the repository |
505 resources usage. |
505 resources usage. |
506 |
506 |
507 This is a public method, not requiring a session id. |
507 This is a public method, not requiring a session id. |
509 This method is deprecated in favor of using _cw.call_service('repo_stats') |
509 This method is deprecated in favor of using _cw.call_service('repo_stats') |
510 """ |
510 """ |
511 with self.internal_cnx() as cnx: |
511 with self.internal_cnx() as cnx: |
512 return cnx.call_service('repo_stats') |
512 return cnx.call_service('repo_stats') |
513 |
513 |
514 @deprecated("[3.19] use _cw.call_service('repo_gc_stats'") |
514 @deprecated("[3.19] use _cw.call_service('repo_gc_stats')") |
515 def gc_stats(self, nmax=20): |
515 def gc_stats(self, nmax=20): |
516 """Return a dictionary containing some statistics about the repository |
516 """Return a dictionary containing some statistics about the repository |
517 memory usage. |
517 memory usage. |
518 |
518 |
519 This is a public method, not requiring a session id. |
519 This is a public method, not requiring a session id. |