diff mercurial/setdiscovery.py @ 39582:bd9d3a89f07b

util: add a popoldest() method to lrucachedict This allows consumers to prune the oldest item from the cache. This could be useful for e.g. a consumer that wishes for the size of items tracked by the cache to remain under a high water mark. Differential Revision: https://phab.mercurial-scm.org/D4501
author Gregory Szorc <gregory.szorc@gmail.com>
date Wed, 05 Sep 2018 23:15:20 -0700
parents 274acf379dbb
children 71b0db4fa027
line wrap: on
line diff