diff mercurial/util.py @ 39571:8f2c0d1b454c

util: update lrucachedict order during get() get() should have the same semantics as __getitem__ for item retrieval. Differential Revision: https://phab.mercurial-scm.org/D4506
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 07 Sep 2018 10:18:20 -0700
parents f296c0b366c8
children b63dee7bd0d9
line wrap: on
line diff
--- a/mercurial/util.py	Thu Sep 06 18:04:27 2018 -0700
+++ b/mercurial/util.py	Fri Sep 07 10:18:20 2018 -0700
@@ -1332,7 +1332,7 @@
 
     def get(self, k, default=None):
         try:
-            return self._cache[k].value
+            return self.__getitem__(k)
         except KeyError:
             return default