mercurial/context.py
changeset 48095 20d0149b8a0a
parent 48094 3fe500d15e7c
child 48381 41f40f35278a
equal deleted inserted replaced
48094:3fe500d15e7c 48095:20d0149b8a0a
  2015         )
  2015         )
  2016 
  2016 
  2017     def matches(self, match):
  2017     def matches(self, match):
  2018         match = self._repo.narrowmatch(match)
  2018         match = self._repo.narrowmatch(match)
  2019         ds = self._repo.dirstate
  2019         ds = self._repo.dirstate
  2020         return sorted(f for f in ds.matches(match) if ds[f] != b'r')
  2020         return sorted(f for f in ds.matches(match) if ds.get_entry(f).tracked)
  2021 
  2021 
  2022     def markcommitted(self, node):
  2022     def markcommitted(self, node):
  2023         with self._repo.dirstate.parentchange():
  2023         with self._repo.dirstate.parentchange():
  2024             for f in self.modified() + self.added():
  2024             for f in self.modified() + self.added():
  2025                 self._repo.dirstate.update_file(
  2025                 self._repo.dirstate.update_file(