diff mercurial/revlog.py @ 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 ab0d762d89ef
children 13a6dd952ffe
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}