Mercurial > hg
changeset 43527:43424f03d9a4
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
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 02 Nov 2019 14:45:57 +0100 |
parents | e258ad110488 |
children | 90a0f631829e |
files | contrib/perf.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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}