Mercurial > hg
view tests/sitecustomize.py @ 17324:9f94358f9f93 stable
localrepo: clear the filecache on _rollback() and destroyed()
This restores the old behaviour of clearing the filecache when the repo is
destroyed but combines it with also clearing it on _rollback. Before, we tried
to only call it through _rollback but that ruined callers of destroyed.
Doing it on both code paths covers destroyed being called from somewhere
else, e.g. strip.
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Sat, 28 Jul 2012 22:40:30 +0300 |
parents | 0b21ae0a2366 |
children | 031947baf4d0 |
line wrap: on
line source
try: import coverage getattr(coverage, 'process_startup', lambda: None)() except ImportError: pass