diff hgext/mq.py @ 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 ad4155e757da
children 1bac2bfe081a
line wrap: on
line diff
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -1393,7 +1393,7 @@ def reposetup(ui, repo):
             if self.tagscache:
                 return self.tagscache
 
-            tagscache = super(self.__class__, self).tags()
+            tagscache = super(MqRepo, self).tags()
 
             q = self.mq
             if not q.applied: