diff mercurial/repoview.py @ 51104:1c0f3994d733

changelog-delay: move "delayed" check to a more official API To avoid reaching inside the inner object in the future, we needs some official API. We put one of such API early to reduce the size of the final diff.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 26 Oct 2023 03:41:58 +0200
parents 18c8c18993f0
children f20c4b307a5a
line wrap: on
line diff
--- a/mercurial/repoview.py	Thu Oct 26 03:29:46 2023 +0200
+++ b/mercurial/repoview.py	Thu Oct 26 03:41:58 2023 +0200
@@ -416,7 +416,7 @@
         with util.timedcm('repo filter for %s', self.filtername):
             revs = filterrevs(unfi, self.filtername, self._visibilityexceptions)
         cl = self._clcache
-        newkey = (unfilen, unfinode, hash(revs), unfichangelog._delayed)
+        newkey = (unfilen, unfinode, hash(revs), unfichangelog.is_delaying)
         # if cl.index is not unfiindex, unfi.changelog would be
         # recreated, and our clcache refers to garbage object
         if cl is not None and (