# HG changeset patch # User Anton Shestakov # Date 1522995984 -28800 # Node ID a2d06eba843fb659494d5fecca73ad25bb509b67 # Parent 4eea4a3ef11f1e85c4d1d41d300ff919c1e0cc6f obscache: use self instead of repo in obscacherepo.updatecaches() Referring to repo here was somehow preventing it from being garbage-collected (important in hgweb, where currently every request gets a new repo). diff -r 4eea4a3ef11f -r a2d06eba843f hgext3rd/evolve/obscache.py --- a/hgext3rd/evolve/obscache.py Wed Apr 04 16:29:48 2018 +0200 +++ b/hgext3rd/evolve/obscache.py Fri Apr 06 14:26:24 2018 +0800 @@ -527,8 +527,8 @@ @localrepo.unfilteredmethod def updatecaches(self, tr=None, **kwargs): super(obscacherepo, self).updatecaches(tr, **kwargs) - self.obsstore.obscache.update(repo) - self.obsstore.obscache.save(repo) + self.obsstore.obscache.update(self) + self.obsstore.obscache.save(self) else: def transaction(self, *args, **kwargs):