Mercurial > hg
comparison mercurial/localrepo.py @ 13526:8ac1260941c0 stable
bookmark: fix invalidation of localrepo._bookmarkcurrent
author | Steve Borho <steve@borho.org> |
---|---|
date | Wed, 02 Mar 2011 21:57:20 -0600 |
parents | 053c042118bc |
children | 919174c0aaff |
comparison
equal
deleted
inserted
replaced
13520:9510ddf87c43 | 13526:8ac1260941c0 |
---|---|
761 self.nodetagscache = None | 761 self.nodetagscache = None |
762 self._branchcache = None # in UTF-8 | 762 self._branchcache = None # in UTF-8 |
763 self._branchcachetip = None | 763 self._branchcachetip = None |
764 | 764 |
765 def invalidate(self): | 765 def invalidate(self): |
766 for a in ("changelog", "manifest", "_bookmarks", "_bookmarkscurrent"): | 766 for a in ("changelog", "manifest", "_bookmarks", "_bookmarkcurrent"): |
767 if a in self.__dict__: | 767 if a in self.__dict__: |
768 delattr(self, a) | 768 delattr(self, a) |
769 self.invalidatecaches() | 769 self.invalidatecaches() |
770 | 770 |
771 def _lock(self, lockname, wait, releasefn, acquirefn, desc): | 771 def _lock(self, lockname, wait, releasefn, acquirefn, desc): |