changeset 2742:2f13f8d3fe80

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.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Mon, 31 Jul 2006 14:22:17 -0300
parents ae5ce3454ef5
children a31f0f2997e9
files hgext/mq.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: