Mercurial > evolve
changeset 3646:0dd393a32567
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).
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 06 Apr 2018 14:36:36 +0800 |
parents | a2d06eba843f |
children | 626c5fa0ef07 |
files | hgext3rd/evolve/stablerangecache.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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