comparison mercurial/context.py @ 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 a6b8b1ab9116
comparison
equal deleted inserted replaced
50182:21b6ce3ade35 50183:0d6173373fa5
1897 def _dirstatestatus(self, match, ignored=False, clean=False, unknown=False): 1897 def _dirstatestatus(self, match, ignored=False, clean=False, unknown=False):
1898 '''Gets the status from the dirstate -- internal use only.''' 1898 '''Gets the status from the dirstate -- internal use only.'''
1899 subrepos = [] 1899 subrepos = []
1900 if b'.hgsub' in self: 1900 if b'.hgsub' in self:
1901 subrepos = sorted(self.substate) 1901 subrepos = sorted(self.substate)
1902 if True: 1902 dirstate = self._repo.dirstate
1903 cmp, s, mtime_boundary = self._repo.dirstate.status( 1903 with dirstate.running_status(self._repo):
1904 cmp, s, mtime_boundary = dirstate.status(
1904 match, subrepos, ignored=ignored, clean=clean, unknown=unknown 1905 match, subrepos, ignored=ignored, clean=clean, unknown=unknown
1905 ) 1906 )
1906 1907
1907 # check for any possibly clean files 1908 # check for any possibly clean files
1908 fixup = [] 1909 fixup = []