Mercurial > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
51107:222b89224397 | 51108:1c0f3994d733 |
---|---|
3017 unfiltered = self.unfiltered() # all file caches are stored unfiltered | 3017 unfiltered = self.unfiltered() # all file caches are stored unfiltered |
3018 for k in list(self._filecache.keys()): | 3018 for k in list(self._filecache.keys()): |
3019 if ( | 3019 if ( |
3020 k == b'changelog' | 3020 k == b'changelog' |
3021 and self.currenttransaction() | 3021 and self.currenttransaction() |
3022 and self.changelog._delayed | 3022 and self.changelog.is_delaying |
3023 ): | 3023 ): |
3024 # The changelog object may store unwritten revisions. We don't | 3024 # The changelog object may store unwritten revisions. We don't |
3025 # want to lose them. | 3025 # want to lose them. |
3026 # TODO: Solve the problem instead of working around it. | 3026 # TODO: Solve the problem instead of working around it. |
3027 continue | 3027 continue |