# HG changeset patch # User Pierre-Yves David # Date 1344417043 -7200 # Node ID 4f23f224afb4e11b430e560d752e8da87cb02a8b # Parent 96c896f0180bfc26753b558f6dad3a07ba9ab0b3 obsolete: Improves cache invalidation logic Filecache are not the same that cache property. This can probably be improved diff -r 96c896f0180b -r 4f23f224afb4 hgext/obsolete.py --- 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')