hgext3rd/evolve/stablesort.py
changeset 3504 5dc34b857114
parent 3483 f03845bfd015
child 3857 9672de8055cd
equal deleted inserted replaced
3503:edabac9e9dc5 3504:5dc34b857114
   670                 self.stablesort.clear()
   670                 self.stablesort.clear()
   671             super(stablesortrepo, self).destroyed()
   671             super(stablesortrepo, self).destroyed()
   672 
   672 
   673         if util.safehasattr(repo, 'updatecaches'):
   673         if util.safehasattr(repo, 'updatecaches'):
   674             @localrepo.unfilteredmethod
   674             @localrepo.unfilteredmethod
   675             def updatecaches(self, tr=None):
   675             def updatecaches(self, tr=None, **kwargs):
   676                 if utility.shouldwarmcache(self, tr):
   676                 if utility.shouldwarmcache(self, tr):
   677                     self.stablesort.update(self)
   677                     self.stablesort.update(self)
   678                     self.stablesort.save(self)
   678                     self.stablesort.save(self)
   679                 super(stablesortrepo, self).updatecaches(tr)
   679                 super(stablesortrepo, self).updatecaches(tr, **kwargs)
   680 
   680 
   681         else:
   681         else:
   682             def transaction(self, *args, **kwargs):
   682             def transaction(self, *args, **kwargs):
   683                 tr = super(stablesortrepo, self).transaction(*args, **kwargs)
   683                 tr = super(stablesortrepo, self).transaction(*args, **kwargs)
   684                 reporef = weakref.ref(self)
   684                 reporef = weakref.ref(self)