diff -r 7331ee72f99c -r 3e4a944c0d04 mercurial/localrepo.py --- a/mercurial/localrepo.py Fri Jan 11 00:05:52 2013 +0200 +++ b/mercurial/localrepo.py Wed Jan 09 20:37:44 2013 +0200 @@ -1447,10 +1447,7 @@ # head, refresh the tag cache, then immediately add a new head. # But I think doing it this way is necessary for the "instant # tag cache retrieval" case to work. - self.invalidatecaches() - - # Discard all cache entries to force reloading everything. - self._filecache.clear() + self.invalidate() def walk(self, match, node=None): '''