comparison mercurial/graphmod.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 3c4b2e880273
children fb9e11fdcbba
comparison
equal deleted inserted replaced
39581:2dcc68c7d25b 39582:bd9d3a89f07b