diff mercurial/localrepo.py @ 51108: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 e2941c398f10
children 0250e45040f1
line wrap: on
line diff
--- a/mercurial/localrepo.py	Thu Oct 26 03:29:46 2023 +0200
+++ b/mercurial/localrepo.py	Thu Oct 26 03:41:58 2023 +0200
@@ -3019,7 +3019,7 @@
             if (
                 k == b'changelog'
                 and self.currenttransaction()
-                and self.changelog._delayed
+                and self.changelog.is_delaying
             ):
                 # The changelog object may store unwritten revisions. We don't
                 # want to lose them.