diff -r 6fcdcea2b03a -r 4353942be294 mercurial/obsolete.py --- a/mercurial/obsolete.py Tue Oct 15 11:05:32 2019 -0400 +++ b/mercurial/obsolete.py Wed Jun 19 18:22:10 2019 -0400 @@ -899,11 +899,12 @@ Such access may compute the set and cache it for future use""" repo = repo.unfiltered() - if not repo.obsstore: - return frozenset() - if name not in repo.obsstore.caches: - repo.obsstore.caches[name] = cachefuncs[name](repo) - return repo.obsstore.caches[name] + with util.timedcm('getrevs %s', name): + if not repo.obsstore: + return frozenset() + if name not in repo.obsstore.caches: + repo.obsstore.caches[name] = cachefuncs[name](repo) + return repo.obsstore.caches[name] # To be simple we need to invalidate obsolescence cache when: