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) |