mercurial/context.py
changeset 19682 42ffc7f31acf
parent 19681 cfc4ae65023f
child 19683 6336f35ed77d
equal deleted inserted replaced
19681:cfc4ae65023f 19682:42ffc7f31acf
   972 
   972 
   973     def modified(self):
   973     def modified(self):
   974         return self._status[0]
   974         return self._status[0]
   975     def added(self):
   975     def added(self):
   976         return self._status[1]
   976         return self._status[1]
       
   977     def removed(self):
       
   978         return self._status[2]
   977 
   979 
   978 class workingctx(commitablectx):
   980 class workingctx(commitablectx):
   979     """A workingctx object makes access to data related to
   981     """A workingctx object makes access to data related to
   980     the current working directory convenient.
   982     the current working directory convenient.
   981     date - any valid date string or (unixtime, offset), or None.
   983     date - any valid date string or (unixtime, offset), or None.
   999         p = self._repo.dirstate.parents()
  1001         p = self._repo.dirstate.parents()
  1000         if p[1] == nullid:
  1002         if p[1] == nullid:
  1001             p = p[:-1]
  1003             p = p[:-1]
  1002         return [changectx(self._repo, x) for x in p]
  1004         return [changectx(self._repo, x) for x in p]
  1003 
  1005 
  1004     def removed(self):
       
  1005         return self._status[2]
       
  1006     def deleted(self):
  1006     def deleted(self):
  1007         return self._status[3]
  1007         return self._status[3]
  1008     def unknown(self):
  1008     def unknown(self):
  1009         assert self._unknown is not None  # must call status first
  1009         assert self._unknown is not None  # must call status first
  1010         return self._unknown
  1010         return self._unknown