mercurial/localrepo.py
changeset 18313 3e4a944c0d04
parent 18312 7331ee72f99c
child 18314 3c3855470b19
--- 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):
         '''