revlog: clarify which version use the older API in perf
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 02 Nov 2019 14:45:57 +0100
changeset 43527 43424f03d9a4
parent 43526 e258ad110488
child 43528 90a0f631829e
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
contrib/perf.py
--- a/contrib/perf.py	Wed Nov 06 14:13:19 2019 +0100
+++ b/contrib/perf.py	Sat Nov 02 14:45:57 2019 +0100
@@ -820,6 +820,7 @@
     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}