Mercurial > evolve
changeset 2305:a786240c95bd
obscache: log case where the cache is not up to date
This will help track performance issue
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Tue, 02 May 2017 17:44:12 +0200 |
parents | 2f15090712fe |
children | b33bc2f37e89 |
files | hgext3rd/evolve/obscache.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/obscache.py Tue May 02 16:13:04 2017 +0200 +++ b/hgext3rd/evolve/obscache.py Tue May 02 17:44:12 2017 +0200 @@ -335,6 +335,10 @@ # will be about as fast.. if not obscache.uptodate(repo): if repo.currenttransaction() is None: + repo.ui.log('evoext-obscache', + 'obscache is out of date, ' + 'falling back to slower obsstore version\n') + repo.ui.debug('obscache is out of date') return orig(repo) else: # If a transaction is open, it is worthwhile to update and use the