Mercurial > hg-stable
diff tests/test-filecache.py.out @ 18313:3e4a944c0d04
destroyed: keep the filecache in sync with __dict__ (issue3335) (issue3693) (issue3743)
We need to make sure that if X is in the filecache then it's also in the
filecache owner's __dict__, otherwise it will go out of sync:
repo.X # first access to X, records stat info in
# filecache and updates __dict__
repo._filecache.clear() # removes X from _filecache but it's still in __dict__
repo.invalidate() # iterates over _filecache and removes entries
# from __dict__, but X isn't in _filecache, so
# it's kept in __dict__
repo.X # X is fetched from __dict__, bypassing the filecache
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Wed, 09 Jan 2013 20:37:44 +0200 |
parents | dca59d5be12d |
children | f36375576ed5 |
line wrap: on
line diff
--- a/tests/test-filecache.py.out Fri Jan 11 00:05:52 2013 +0200 +++ b/tests/test-filecache.py.out Wed Jan 09 20:37:44 2013 +0200 @@ -13,3 +13,7 @@ creating creating creating +repository tip rolled back to revision -1 (undo commit) +working directory now based on revision -1 +repository tip rolled back to revision -1 (undo commit) +working directory now based on revision -1