Mercurial > hg-stable
diff hgext/mq.py @ 6120:f89878df40fe
move the reading of branch.cache from _branchtags to branchtags
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Fri, 15 Feb 2008 16:06:36 -0200 |
parents | cfb4a51da7d5 |
children | 989467e8e3a9 |
line wrap: on
line diff
--- a/hgext/mq.py Fri Feb 15 16:06:36 2008 -0200 +++ b/hgext/mq.py Fri Feb 15 16:06:36 2008 -0200 @@ -2186,20 +2186,17 @@ return tagscache - def _branchtags(self): + def _branchtags(self, partial, lrev): q = self.mq if not q.applied: - return super(mqrepo, self)._branchtags() + return super(mqrepo, self)._branchtags(partial, lrev) cl = self.changelog qbasenode = revlog.bin(q.applied[0].rev) if qbasenode not in cl.nodemap: self.ui.warn('mq status file refers to unknown node %s\n' % revlog.short(qbasenode)) - return super(mqrepo, self)._branchtags() - - self.branchcache = {} # avoid recursion in changectx - partial, last, lrev = self._readbranchcache() + return super(mqrepo, self)._branchtags(partial, lrev) qbase = cl.rev(qbasenode) start = lrev + 1