changeset 3504:5dc34b857114

updatecaches: handle any new parameters to the method
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 21 Feb 2018 17:45:50 +0100
parents edabac9e9dc5
children 25155eb05f5f
files hgext3rd/evolve/depthcache.py hgext3rd/evolve/firstmergecache.py hgext3rd/evolve/obscache.py hgext3rd/evolve/obsdiscovery.py hgext3rd/evolve/stablerangecache.py hgext3rd/evolve/stablesort.py
diffstat 6 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/depthcache.py	Wed Feb 07 13:42:30 2018 +0530
+++ b/hgext3rd/evolve/depthcache.py	Wed Feb 21 17:45:50 2018 +0100
@@ -87,11 +87,11 @@
 
         if util.safehasattr(repo, 'updatecaches'):
             @localrepo.unfilteredmethod
-            def updatecaches(self, tr=None):
+            def updatecaches(self, tr=None, **kwargs):
                 if utility.shouldwarmcache(self, tr):
                     self.depthcache.update(self)
                     self.depthcache.save(self)
-                super(depthcacherepo, self).updatecaches(tr)
+                super(depthcacherepo, self).updatecaches(tr, **kwargs)
 
         else:
             def transaction(self, *args, **kwargs):
--- a/hgext3rd/evolve/firstmergecache.py	Wed Feb 07 13:42:30 2018 +0530
+++ b/hgext3rd/evolve/firstmergecache.py	Wed Feb 21 17:45:50 2018 +0100
@@ -49,11 +49,11 @@
 
         if util.safehasattr(repo, 'updatecaches'):
             @localrepo.unfilteredmethod
-            def updatecaches(self, tr=None):
+            def updatecaches(self, tr=None, **kwargs):
                 if utility.shouldwarmcache(self, tr):
                     self.firstmergecache.update(self)
                     self.firstmergecache.save(self)
-                super(firstmergecacherepo, self).updatecaches(tr)
+                super(firstmergecacherepo, self).updatecaches(tr, **kwargs)
 
         else:
             def transaction(self, *args, **kwargs):
--- a/hgext3rd/evolve/obscache.py	Wed Feb 07 13:42:30 2018 +0530
+++ b/hgext3rd/evolve/obscache.py	Wed Feb 21 17:45:50 2018 +0100
@@ -523,8 +523,8 @@
 
         if util.safehasattr(repo, 'updatecaches'):
             @localrepo.unfilteredmethod
-            def updatecaches(self, tr=None):
-                super(obscacherepo, self).updatecaches(tr)
+            def updatecaches(self, tr=None, **kwargs):
+                super(obscacherepo, self).updatecaches(tr, **kwargs)
                 self.obsstore.obscache.update(repo)
                 self.obsstore.obscache.save(repo)
 
--- a/hgext3rd/evolve/obsdiscovery.py	Wed Feb 07 13:42:30 2018 +0530
+++ b/hgext3rd/evolve/obsdiscovery.py	Wed Feb 21 17:45:50 2018 +0100
@@ -597,11 +597,11 @@
 
         if util.safehasattr(repo, 'updatecaches'):
             @localrepo.unfilteredmethod
-            def updatecaches(self, tr=None):
+            def updatecaches(self, tr=None, **kwargs):
                 if utility.shouldwarmcache(self, tr):
                     self.obsstore.rangeobshashcache.update(self)
                     self.obsstore.rangeobshashcache.save(self)
-                super(obshashrepo, self).updatecaches(tr)
+                super(obshashrepo, self).updatecaches(tr, **kwargs)
 
         else:
             def transaction(self, *args, **kwargs):
--- a/hgext3rd/evolve/stablerangecache.py	Wed Feb 07 13:42:30 2018 +0530
+++ b/hgext3rd/evolve/stablerangecache.py	Wed Feb 21 17:45:50 2018 +0100
@@ -366,11 +366,11 @@
 
         if util.safehasattr(repo, 'updatecaches'):
             @localrepo.unfilteredmethod
-            def updatecaches(self, tr=None):
+            def updatecaches(self, tr=None, **kwargs):
                 if utility.shouldwarmcache(self, tr):
                     self.stablerange.update(self)
                     self.stablerange.save(self)
-                super(stablerangerepo, self).updatecaches(tr)
+                super(stablerangerepo, self).updatecaches(tr, **kwargs)
 
         else:
             def transaction(self, *args, **kwargs):
--- a/hgext3rd/evolve/stablesort.py	Wed Feb 07 13:42:30 2018 +0530
+++ b/hgext3rd/evolve/stablesort.py	Wed Feb 21 17:45:50 2018 +0100
@@ -672,11 +672,11 @@
 
         if util.safehasattr(repo, 'updatecaches'):
             @localrepo.unfilteredmethod
-            def updatecaches(self, tr=None):
+            def updatecaches(self, tr=None, **kwargs):
                 if utility.shouldwarmcache(self, tr):
                     self.stablesort.update(self)
                     self.stablesort.save(self)
-                super(stablesortrepo, self).updatecaches(tr)
+                super(stablesortrepo, self).updatecaches(tr, **kwargs)
 
         else:
             def transaction(self, *args, **kwargs):