##// END OF EJS Templates
bookmarks: add invalidate() to bookmark_repo...
Paul Molodowitch -
r10597:153d688c stable
parent child Browse files
Show More
@@ -296,6 +296,13 b' def reposetup(ui, repo):'
296 tags.update(self._bookmarks)
296 tags.update(self._bookmarks)
297 return (tags, tagtypes)
297 return (tags, tagtypes)
298
298
299 if hasattr(repo, 'invalidate'):
300 def invalidate(self):
301 super(bookmark_repo, self).invalidate()
302 for attr in ('_bookmarks', '_bookmarkcurrent'):
303 if attr in self.__dict__:
304 delattr(repo, attr)
305
299 repo.__class__ = bookmark_repo
306 repo.__class__ = bookmark_repo
300
307
301 def uisetup(ui):
308 def uisetup(ui):
General Comments 0
You need to be logged in to leave comments. Login now