Show More
@@ -1075,16 +1075,17 b' class localrepository(object):' | |||||
1075 | delattr(self.dirstate, k) |
|
1075 | delattr(self.dirstate, k) | |
1076 | except AttributeError: |
|
1076 | except AttributeError: | |
1077 | pass |
|
1077 | pass | |
1078 | delattr(self, 'dirstate') |
|
1078 | delattr(self.unfiltered(), 'dirstate') | |
1079 |
|
1079 | |||
1080 | def invalidate(self): |
|
1080 | def invalidate(self): | |
|
1081 | unfiltered = self.unfiltered() # all filecaches are stored on unfiltered | |||
1081 | for k in self._filecache: |
|
1082 | for k in self._filecache: | |
1082 | # dirstate is invalidated separately in invalidatedirstate() |
|
1083 | # dirstate is invalidated separately in invalidatedirstate() | |
1083 | if k == 'dirstate': |
|
1084 | if k == 'dirstate': | |
1084 | continue |
|
1085 | continue | |
1085 |
|
1086 | |||
1086 | try: |
|
1087 | try: | |
1087 |
delattr( |
|
1088 | delattr(unfiltered, k) | |
1088 | except AttributeError: |
|
1089 | except AttributeError: | |
1089 | pass |
|
1090 | pass | |
1090 | self.invalidatecaches() |
|
1091 | self.invalidatecaches() | |
@@ -1489,6 +1490,7 b' class localrepository(object):' | |||||
1489 | tr.release() |
|
1490 | tr.release() | |
1490 | lock.release() |
|
1491 | lock.release() | |
1491 |
|
1492 | |||
|
1493 | @unfilteredmeth | |||
1492 | def destroyed(self, newheadnodes=None): |
|
1494 | def destroyed(self, newheadnodes=None): | |
1493 | '''Inform the repository that nodes have been destroyed. |
|
1495 | '''Inform the repository that nodes have been destroyed. | |
1494 | Intended for use by strip and rollback, so there's a common |
|
1496 | Intended for use by strip and rollback, so there's a common |
General Comments 0
You need to be logged in to leave comments.
Login now