##// END OF EJS Templates
revset: don't cache abstractsmartset min/max invocations infinitely...
revset: don't cache abstractsmartset min/max invocations infinitely There was a "leak", apparently introduced in ab66c1dee405. When running: hg = hglib.open('repo') while True: hg.log("max(branch('default'))") all filteredset instances from branch() would be cached indefinitely by the @util.cachefunc annotation on the max() implementation. util.cachefunc seems dangerous as method decorator and is barely used elsewhere in the code base. Instead, just open code caching by having the min/max methods replace themselves with a plain lambda returning the result.
Mads Kiilerich -
r30227:5ee944b9 stable
Show More
Name Size Modified Last Commit Author
/ mercurial / default.d
mergetools.rc Loading ...