# HG changeset patch # User Pierre-Yves David # Date 2019-11-02 13:45:57 # Node ID 43424f03d9a46514f039cb731b9942d2b7e3330b # Parent e258ad1104887c2cb284b94cec2a4c3f9b1ef27e revlog: clarify which version use the older API in perf This work is part of a refactoring to unify the revlog index and the nodemap. This unification prepare the use of a persistent nodemap. Differential Revision: https://phab.mercurial-scm.org/D7315 diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -820,6 +820,7 @@ def clearcaches(cl): if util.safehasattr(cl, b'clearcaches'): cl.clearcaches() elif util.safehasattr(cl, b'_nodecache'): + # <= hg-5.2 from mercurial.node import nullid, nullrev cl._nodecache = {nullid: nullrev}