diff hgext/mq.py @ 3823:b3b868113d24

fix encoding conversion of branch names when mq is loaded
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Thu, 07 Dec 2006 14:35:43 -0200
parents 955475d237fc
children f6f16f871049
line wrap: on
line diff
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -2043,13 +2043,10 @@ def reposetup(ui, repo):
 
             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 @@ def reposetup(ui, repo):
             # 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