Mercurial > hg-stable
changeset 50183:0d6173373fa5
status: use `running_status` in dirstate status
This is the way.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 20 Feb 2023 17:26:41 +0100 |
parents | 21b6ce3ade35 |
children | 31be0b46fd47 |
files | mercurial/context.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/context.py Mon Feb 20 17:22:57 2023 +0100 +++ b/mercurial/context.py Mon Feb 20 17:26:41 2023 +0100 @@ -1899,8 +1899,9 @@ subrepos = [] if b'.hgsub' in self: subrepos = sorted(self.substate) - if True: - cmp, s, mtime_boundary = self._repo.dirstate.status( + dirstate = self._repo.dirstate + with dirstate.running_status(self._repo): + cmp, s, mtime_boundary = dirstate.status( match, subrepos, ignored=ignored, clean=clean, unknown=unknown )