comparison mercurial/localrepo.py @ 16128:004982e5d782

merge with stable
author Matt Mackall <mpm@selenic.com>
date Thu, 16 Feb 2012 16:40:29 -0600
parents b254f827b7a6 ce0ad184f489
children a01d2fb5ba65
comparison
equal deleted inserted replaced
16127:14dc2bbba6d2 16128:004982e5d782
947 947
948 def unlock(): 948 def unlock():
949 self.store.write() 949 self.store.write()
950 if self._dirtyphases: 950 if self._dirtyphases:
951 phases.writeroots(self) 951 phases.writeroots(self)
952 self._dirtyphases = False
952 for k, ce in self._filecache.items(): 953 for k, ce in self._filecache.items():
953 if k == 'dirstate': 954 if k == 'dirstate':
954 continue 955 continue
955 ce.refresh() 956 ce.refresh()
956 957
1320 # XXX this is suboptimal when qrefresh'ing: we strip the current 1321 # XXX this is suboptimal when qrefresh'ing: we strip the current
1321 # head, refresh the tag cache, then immediately add a new head. 1322 # head, refresh the tag cache, then immediately add a new head.
1322 # But I think doing it this way is necessary for the "instant 1323 # But I think doing it this way is necessary for the "instant
1323 # tag cache retrieval" case to work. 1324 # tag cache retrieval" case to work.
1324 self.invalidatecaches() 1325 self.invalidatecaches()
1326
1327 # Discard all cache entries to force reloading everything.
1328 self._filecache.clear()
1325 1329
1326 def walk(self, match, node=None): 1330 def walk(self, match, node=None):
1327 ''' 1331 '''
1328 walk recursively through the directory tree or a given 1332 walk recursively through the directory tree or a given
1329 changeset, finding all files matched by the match 1333 changeset, finding all files matched by the match