revlog: document cext oddities in terms of object/caches
authorBoris Feld <boris.feld@octobus.net>
Fri, 25 Jan 2019 18:22:02 -0500
changeset 41435 e2e815e3c4ae
parent 41434 48394923fbdc
child 41436 ab6d1f82be32
revlog: document cext oddities in terms of object/caches This clarify why we just call clearcaches on a single object.
mercurial/revlog.py
--- 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}