diff -r 222b89224397 -r 1c0f3994d733 mercurial/localrepo.py --- 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.