##// END OF EJS Templates
bookmarks: merge invalidation into core
Matt Mackall -
r13358:f26a5185 default
parent child Browse files
Show More
@@ -233,13 +233,6 b' def reposetup(ui, repo):'
233 tags.update(self._bookmarks)
233 tags.update(self._bookmarks)
234 return (tags, tagtypes)
234 return (tags, tagtypes)
235
235
236 if hasattr(repo, 'invalidate'):
237 def invalidate(self):
238 super(bookmark_repo, self).invalidate()
239 for attr in ('_bookmarks', '_bookmarkcurrent'):
240 if attr in self.__dict__:
241 delattr(self, attr)
242
243 repo.__class__ = bookmark_repo
236 repo.__class__ = bookmark_repo
244
237
245 def pull(oldpull, ui, repo, source="default", **opts):
238 def pull(oldpull, ui, repo, source="default", **opts):
@@ -743,7 +743,7 b' class localrepository(repo.repository):'
743 self._branchcachetip = None
743 self._branchcachetip = None
744
744
745 def invalidate(self):
745 def invalidate(self):
746 for a in ("changelog", "manifest"):
746 for a in ("changelog", "manifest", "_bookmarks", "_bookmarkscurrent"):
747 if a in self.__dict__:
747 if a in self.__dict__:
748 delattr(self, a)
748 delattr(self, a)
749 self.invalidatecaches()
749 self.invalidatecaches()
General Comments 0
You need to be logged in to leave comments. Login now