mq: correct the use of super
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Mon, 31 Jul 2006 14:22:17 -0300
changeset 2742 2f13f8d3fe80
parent 2741 ae5ce3454ef5
child 2743 a31f0f2997e9
mq: correct the use of super The first argument passed to super is supposed to be the class where it's being used, not self.__class__ - the two can be different when there's inheritance involved.
hgext/mq.py
--- a/hgext/mq.py	Mon Jul 31 07:31:31 2006 -0700
+++ b/hgext/mq.py	Mon Jul 31 14:22:17 2006 -0300
@@ -1393,7 +1393,7 @@
             if self.tagscache:
                 return self.tagscache
 
-            tagscache = super(self.__class__, self).tags()
+            tagscache = super(MqRepo, self).tags()
 
             q = self.mq
             if not q.applied: