# HG changeset patch # User Pierre-Yves David # Date 1676910401 -3600 # Node ID 0d6173373fa5ce018f7dd1c302da7f88128c72b0 # Parent 21b6ce3ade35685931a320ee0adf1590dcf1d559 status: use `running_status` in dirstate status This is the way. diff -r 21b6ce3ade35 -r 0d6173373fa5 mercurial/context.py --- 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 )