mercurial/context.py
changeset 50133 21b6ce3ade35
parent 50131 e5f5f1c1c452
child 50134 0d6173373fa5
equal deleted inserted replaced
50132:3dd7e54ff7f1 50133:21b6ce3ade35
  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         cmp, s, mtime_boundary = self._repo.dirstate.status(
  1902         if True:
  1903             match, subrepos, ignored=ignored, clean=clean, unknown=unknown
  1903             cmp, s, mtime_boundary = self._repo.dirstate.status(
  1904         )
  1904                 match, subrepos, ignored=ignored, clean=clean, unknown=unknown
  1905 
       
  1906         # check for any possibly clean files
       
  1907         fixup = []
       
  1908         if cmp:
       
  1909             modified2, deleted2, clean_set, fixup = self._checklookup(
       
  1910                 cmp, mtime_boundary
       
  1911             )
  1905             )
  1912             s.modified.extend(modified2)
  1906 
  1913             s.deleted.extend(deleted2)
  1907             # check for any possibly clean files
  1914 
  1908             fixup = []
  1915             if clean_set and clean:
  1909             if cmp:
  1916                 s.clean.extend(clean_set)
  1910                 modified2, deleted2, clean_set, fixup = self._checklookup(
  1917             if fixup and clean:
  1911                     cmp, mtime_boundary
  1918                 s.clean.extend((f for f, _ in fixup))
  1912                 )
  1919 
  1913                 s.modified.extend(modified2)
  1920         self._poststatusfixup(s, fixup)
  1914                 s.deleted.extend(deleted2)
       
  1915 
       
  1916                 if clean_set and clean:
       
  1917                     s.clean.extend(clean_set)
       
  1918                 if fixup and clean:
       
  1919                     s.clean.extend((f for f, _ in fixup))
       
  1920 
       
  1921             self._poststatusfixup(s, fixup)
  1921 
  1922 
  1922         if match.always():
  1923         if match.always():
  1923             # cache for performance
  1924             # cache for performance
  1924             if s.unknown or s.ignored or s.clean:
  1925             if s.unknown or s.ignored or s.clean:
  1925                 # "_status" is cached with list*=False in the normal route
  1926                 # "_status" is cached with list*=False in the normal route