equal
deleted
inserted
replaced
831 if os.path.exists(self.sjoin('undo.phaseroots')): |
831 if os.path.exists(self.sjoin('undo.phaseroots')): |
832 util.rename(self.sjoin('undo.phaseroots'), |
832 util.rename(self.sjoin('undo.phaseroots'), |
833 self.sjoin('phaseroots')) |
833 self.sjoin('phaseroots')) |
834 self.invalidate() |
834 self.invalidate() |
835 |
835 |
|
836 # Discard all cache entries to force reloading everything. |
|
837 self._filecache.clear() |
|
838 |
836 parentgone = (parents[0] not in self.changelog.nodemap or |
839 parentgone = (parents[0] not in self.changelog.nodemap or |
837 parents[1] not in self.changelog.nodemap) |
840 parents[1] not in self.changelog.nodemap) |
838 if parentgone: |
841 if parentgone: |
839 util.rename(self.join('undo.dirstate'), self.join('dirstate')) |
842 util.rename(self.join('undo.dirstate'), self.join('dirstate')) |
840 try: |
843 try: |
1313 # XXX this is suboptimal when qrefresh'ing: we strip the current |
1316 # XXX this is suboptimal when qrefresh'ing: we strip the current |
1314 # head, refresh the tag cache, then immediately add a new head. |
1317 # head, refresh the tag cache, then immediately add a new head. |
1315 # But I think doing it this way is necessary for the "instant |
1318 # But I think doing it this way is necessary for the "instant |
1316 # tag cache retrieval" case to work. |
1319 # tag cache retrieval" case to work. |
1317 self.invalidatecaches() |
1320 self.invalidatecaches() |
1318 |
|
1319 # Discard all cache entries to force reloading everything. |
|
1320 self._filecache.clear() |
|
1321 |
1321 |
1322 def walk(self, match, node=None): |
1322 def walk(self, match, node=None): |
1323 ''' |
1323 ''' |
1324 walk recursively through the directory tree or a given |
1324 walk recursively through the directory tree or a given |
1325 changeset, finding all files matched by the match |
1325 changeset, finding all files matched by the match |