Show More
@@ -52,6 +52,7 b' class dirstate(object):' | |||
|
52 | 52 | self._dirtypl = False |
|
53 | 53 | self._lastnormaltime = 0 |
|
54 | 54 | self._ui = ui |
|
55 | self._filecache = {} | |
|
55 | 56 | |
|
56 | 57 | @propertycache |
|
57 | 58 | def _map(self): |
@@ -901,10 +901,13 b' class localrepository(repo.repository):' | |||
|
901 | 901 | rereads the dirstate. Use dirstate.invalidate() if you want to |
|
902 | 902 | explicitly read the dirstate again (i.e. restoring it to a previous |
|
903 | 903 | known good state).''' |
|
904 | if 'dirstate' in self.__dict__: | |
|
905 | for k in self.dirstate._filecache: | |
|
904 | 906 | try: |
|
905 |
delattr(self, |
|
|
907 | delattr(self.dirstate, k) | |
|
906 | 908 | except AttributeError: |
|
907 | 909 | pass |
|
910 | delattr(self, 'dirstate') | |
|
908 | 911 | |
|
909 | 912 | def invalidate(self): |
|
910 | 913 | for k in self._filecache: |
General Comments 0
You need to be logged in to leave comments.
Login now