comparison 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
comparison
equal deleted inserted replaced
2741:ae5ce3454ef5 2742:2f13f8d3fe80
1391 class MqRepo(repo.__class__): 1391 class MqRepo(repo.__class__):
1392 def tags(self): 1392 def tags(self):
1393 if self.tagscache: 1393 if self.tagscache:
1394 return self.tagscache 1394 return self.tagscache
1395 1395
1396 tagscache = super(self.__class__, self).tags() 1396 tagscache = super(MqRepo, self).tags()
1397 1397
1398 q = self.mq 1398 q = self.mq
1399 if not q.applied: 1399 if not q.applied:
1400 return tagscache 1400 return tagscache
1401 1401