Show More
@@ -847,7 +847,6 b' class queue(object):' | |||
|
847 | 847 | try: |
|
848 | 848 | tr.abort() |
|
849 | 849 | finally: |
|
850 | repo.invalidate() | |
|
851 | 850 | self.invalidate() |
|
852 | 851 | raise |
|
853 | 852 | finally: |
@@ -1014,6 +1014,8 b' class localrepository(object):' | |||
|
1014 | 1014 | # out) in this transaction |
|
1015 | 1015 | repo.vfs.rename('journal.dirstate', 'dirstate') |
|
1016 | 1016 | |
|
1017 | repo.invalidate(clearfilecache=True) | |
|
1018 | ||
|
1017 | 1019 | tr = transaction.transaction(rp, self.svfs, vfsmap, |
|
1018 | 1020 | "journal", |
|
1019 | 1021 | "undo", |
@@ -1205,13 +1207,15 b' class localrepository(object):' | |||
|
1205 | 1207 | pass |
|
1206 | 1208 | delattr(self.unfiltered(), 'dirstate') |
|
1207 | 1209 | |
|
1208 | def invalidate(self): | |
|
1210 | def invalidate(self, clearfilecache=False): | |
|
1209 | 1211 | unfiltered = self.unfiltered() # all file caches are stored unfiltered |
|
1210 | for k in self._filecache: | |
|
1212 | for k in self._filecache.keys(): | |
|
1211 | 1213 | # dirstate is invalidated separately in invalidatedirstate() |
|
1212 | 1214 | if k == 'dirstate': |
|
1213 | 1215 | continue |
|
1214 | 1216 | |
|
1217 | if clearfilecache: | |
|
1218 | del self._filecache[k] | |
|
1215 | 1219 | try: |
|
1216 | 1220 | delattr(unfiltered, k) |
|
1217 | 1221 | except AttributeError: |
General Comments 0
You need to be logged in to leave comments.
Login now