mercurial/context.py
changeset 21398 ed608a544719
parent 21397 38743c59f3f8
child 21466 3b1ec3d4ece6
equal deleted inserted replaced
21397:38743c59f3f8 21398:ed608a544719
  1234             if fixup and listclean:
  1234             if fixup and listclean:
  1235                 clean += fixup
  1235                 clean += fixup
  1236 
  1236 
  1237         return [modified, added, removed, deleted, unknown, ignored, clean]
  1237         return [modified, added, removed, deleted, unknown, ignored, clean]
  1238 
  1238 
  1239     def status(self, ignored=False, clean=False, unknown=False):
  1239     def status(self, ignored=False, clean=False, unknown=False, match=None):
  1240         """Explicit status query
  1240         """Explicit status query
  1241         Unless this method is used to query the working copy status, the
  1241         Unless this method is used to query the working copy status, the
  1242         _status property will implicitly read the status using its default
  1242         _status property will implicitly read the status using its default
  1243         arguments."""
  1243         arguments."""
  1244         stat = self._repo.status(ignored=ignored, clean=clean, unknown=unknown)
  1244         listignored, listclean, listunknown = ignored, clean, unknown
       
  1245         s = self._dirstatestatus(match=match, ignored=listignored,
       
  1246                                  clean=listclean, unknown=listunknown)
       
  1247         modified, added, removed, deleted, unknown, ignored, clean = s
       
  1248 
       
  1249         modified = self._filtersuspectsymlink(modified)
       
  1250 
  1245         self._unknown = self._ignored = self._clean = None
  1251         self._unknown = self._ignored = self._clean = None
  1246         if unknown:
  1252         if listunknown:
  1247             self._unknown = stat[4]
  1253             self._unknown = unknown
  1248         if ignored:
  1254         if listignored:
  1249             self._ignored = stat[5]
  1255             self._ignored = ignored
  1250         if clean:
  1256         if listclean:
  1251             self._clean = stat[6]
  1257             self._clean = clean
  1252         self._status = stat[:4]
  1258         self._status = modified, added, removed, deleted
  1253         return stat
  1259 
       
  1260         return modified, added, removed, deleted, unknown, ignored, clean
  1254 
  1261 
  1255 
  1262 
  1256 class committablefilectx(basefilectx):
  1263 class committablefilectx(basefilectx):
  1257     """A committablefilectx provides common functionality for a file context
  1264     """A committablefilectx provides common functionality for a file context
  1258     that wants the ability to commit, e.g. workingfilectx or memfilectx."""
  1265     that wants the ability to commit, e.g. workingfilectx or memfilectx."""