mercurial/context.py
changeset 34344 ac0cd81e2f83
parent 34343 255c761a52db
child 34430 80215865d154
equal deleted inserted replaced
34343:255c761a52db 34344:ac0cd81e2f83
  1754                 # Even if the wlock couldn't be grabbed, clear out the list.
  1754                 # Even if the wlock couldn't be grabbed, clear out the list.
  1755                 self._repo.clearpostdsstatus()
  1755                 self._repo.clearpostdsstatus()
  1756 
  1756 
  1757     def _dirstatestatus(self, match, ignored=False, clean=False, unknown=False):
  1757     def _dirstatestatus(self, match, ignored=False, clean=False, unknown=False):
  1758         '''Gets the status from the dirstate -- internal use only.'''
  1758         '''Gets the status from the dirstate -- internal use only.'''
  1759         listignored, listclean, listunknown = ignored, clean, unknown
       
  1760         subrepos = []
  1759         subrepos = []
  1761         if '.hgsub' in self:
  1760         if '.hgsub' in self:
  1762             subrepos = sorted(self.substate)
  1761             subrepos = sorted(self.substate)
  1763         cmp, s = self._repo.dirstate.status(match, subrepos, listignored,
  1762         cmp, s = self._repo.dirstate.status(match, subrepos, ignored=ignored,
  1764                                             listclean, listunknown)
  1763                                             clean=clean, unknown=unknown)
  1765 
  1764 
  1766         # check for any possibly clean files
  1765         # check for any possibly clean files
  1767         fixup = []
  1766         fixup = []
  1768         if cmp:
  1767         if cmp:
  1769             modified2, deleted2, fixup = self._checklookup(cmp)
  1768             modified2, deleted2, fixup = self._checklookup(cmp)
  1770             s.modified.extend(modified2)
  1769             s.modified.extend(modified2)
  1771             s.deleted.extend(deleted2)
  1770             s.deleted.extend(deleted2)
  1772 
  1771 
  1773             if fixup and listclean:
  1772             if fixup and clean:
  1774                 s.clean.extend(fixup)
  1773                 s.clean.extend(fixup)
  1775 
  1774 
  1776         self._poststatusfixup(s, fixup)
  1775         self._poststatusfixup(s, fixup)
  1777 
  1776 
  1778         if match.always():
  1777         if match.always():