stablerangecache: use self instead of repo in stablerangerepo.stablerange()
authorAnton Shestakov <av6@dwimlabs.net>
Fri, 06 Apr 2018 14:36:36 +0800
changeset 3646 0dd393a32567
parent 3645 a2d06eba843f
child 3647 626c5fa0ef07
stablerangecache: use self instead of repo in stablerangerepo.stablerange() Referring to repo here was somehow preventing it from being garbage-collected (important in hgweb, where currently every request gets a new repo).
hgext3rd/evolve/stablerangecache.py
--- a/hgext3rd/evolve/stablerangecache.py	Fri Apr 06 14:26:24 2018 +0800
+++ b/hgext3rd/evolve/stablerangecache.py	Fri Apr 06 14:36:36 2018 +0800
@@ -353,8 +353,8 @@
 
         @localrepo.unfilteredpropertycache
         def stablerange(self):
-            cache = mergepointsql(repo)
-            cache.update(repo)
+            cache = mergepointsql(self)
+            cache.update(self)
             return cache
 
         @localrepo.unfilteredmethod