Mercurial > evolve
changeset 3353:4635cef9624c
stablerange: cleanup the update logic
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 21 Dec 2017 04:24:37 +0100 |
parents | 0370c8503e2f |
children | 32e7ceaf1d82 |
files | hgext3rd/evolve/stablerangecache.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/stablerangecache.py Thu Dec 21 04:23:45 2017 +0100 +++ b/hgext3rd/evolve/stablerangecache.py Thu Dec 21 04:24:37 2017 +0100 @@ -336,9 +336,9 @@ if util.safehasattr(repo, 'updatecaches'): @localrepo.unfilteredmethod def updatecaches(self, tr=None): - if utility.shouldwarmcache(repo): - self.stablerange.update(repo) - self.stablerange.save(repo) + if utility.shouldwarmcache(self): + self.stablerange.update(self) + self.stablerange.save(self) super(stablerangerepo, self).updatecaches(tr) else: @@ -354,7 +354,7 @@ repo.stablerange.update(repo) repo.stablerange.save(repo) - if utility.shouldwarmcache(repo): + if utility.shouldwarmcache(self): tr.addpostclose('warmcache-10stablerange', _warmcache) return tr