D4498: util: properly copy lrucachedict instances

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Fri Sep 7 00:39:26 EDT 2018


martinvonz added inline comments.

INLINE COMMENTS

> util.py:1302
>          try:
>              return self._cache[k].value
>          except KeyError:

Btw, why doesn't this do `return self[k]` instead? It seems surprising that the recency is not updated.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D4498

To: indygreg, #hg-reviewers
Cc: martinvonz, mercurial-devel


More information about the Mercurial-devel mailing list