[PATCH 2 of 3] localrepo: delete _phaserev when invalidating caches
Idan Kamara
idankk86 at gmail.com
Wed Jan 25 16:26:45 CST 2012
# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1327530114 -7200
# Branch stable
# Node ID 8b4c7ea44b72bcb8269d4701eb83c594c9f8d55f
# Parent ec73f8af5b1402b22a9e6b0188aa0ec9c9e621f1
localrepo: delete _phaserev when invalidating caches
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -879,10 +879,14 @@
return 0
def invalidatecaches(self):
- try:
- delattr(self, '_tagscache')
- except AttributeError:
- pass
+ def delcache(name):
+ try:
+ delattr(self, name)
+ except AttributeError:
+ pass
+
+ delcache('_tagscache')
+ delcache('_phaserev')
self._branchcache = None # in UTF-8
self._branchcachetip = None
More information about the Mercurial-devel
mailing list