hgext/mq.py
changeset 3826 b3b868113d24
parent 3763 955475d237fc
child 3857 f6f16f871049
--- a/hgext/mq.py	Thu Dec 07 14:15:11 2006 -0200
+++ b/hgext/mq.py	Thu Dec 07 14:35:43 2006 -0200
@@ -2043,13 +2043,10 @@
 
             return tagscache
 
-        def branchtags(self):
-            if self.branchcache != None:
-                return self.branchcache
-
+        def _branchtags(self):
             q = self.mq
             if not q.applied:
-                return super(mqrepo, self).branchtags()
+                return super(mqrepo, self)._branchtags()
 
             self.branchcache = {} # avoid recursion in changectx
             cl = self.changelog
@@ -2069,8 +2066,7 @@
             # update the cache up to the tip
             self._updatebranchcache(partial, start, cl.count())
 
-            self.branchcache = partial
-            return self.branchcache
+            return partial
 
     if repo.local():
         repo.__class__ = mqrepo