obsolete: Improves cache invalidation logic
Filecache are not the same that cache property.
This can probably be improved
--- a/hgext/obsolete.py Tue Aug 07 21:39:55 2012 +0200
+++ b/hgext/obsolete.py Wed Aug 08 11:10:43 2012 +0200
@@ -358,9 +358,9 @@
### cache clean up
def clearobscaches(repo):
- #if 'obsstore' in vars(repo):
- # should work great but cache invalidation act strange
- repo.obsstore.caches.clear()
+ """"""
+ if 'obsstore' in repo._filecache:
+ repo.obsstore.caches.clear()
@eh.wrapfunction(localrepo.localrepository, 'updatebranchcache')
@eh.wrapfunction(phases, 'advanceboundary')