changeset 41457:e2e815e3c4ae

revlog: document cext oddities in terms of object/caches This clarify why we just call clearcaches on a single object.
author Boris Feld <boris.feld@octobus.net>
date Fri, 25 Jan 2019 18:22:02 -0500
parents 48394923fbdc
children ab6d1f82be32
files mercurial/revlog.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Fri Jan 25 14:52:31 2019 -0500
+++ b/mercurial/revlog.py	Fri Jan 25 18:22:02 2019 -0500
@@ -607,6 +607,9 @@
         self._pcache = {}
 
         try:
+            # If we are using the native C version, you are in a fun case
+            # where self.index, self.nodemap and self._nodecaches is the same
+            # object.
             self._nodecache.clearcaches()
         except AttributeError:
             self._nodecache = {nullid: nullrev}