mercurial/context.py
changeset 19681 cfc4ae65023f
parent 19680 fc33fcfa08f2
child 19682 42ffc7f31acf
equal deleted inserted replaced
19680:fc33fcfa08f2 19681:cfc4ae65023f
   970     def files(self):
   970     def files(self):
   971         return sorted(self._status[0] + self._status[1] + self._status[2])
   971         return sorted(self._status[0] + self._status[1] + self._status[2])
   972 
   972 
   973     def modified(self):
   973     def modified(self):
   974         return self._status[0]
   974         return self._status[0]
       
   975     def added(self):
       
   976         return self._status[1]
   975 
   977 
   976 class workingctx(commitablectx):
   978 class workingctx(commitablectx):
   977     """A workingctx object makes access to data related to
   979     """A workingctx object makes access to data related to
   978     the current working directory convenient.
   980     the current working directory convenient.
   979     date - any valid date string or (unixtime, offset), or None.
   981     date - any valid date string or (unixtime, offset), or None.
   997         p = self._repo.dirstate.parents()
   999         p = self._repo.dirstate.parents()
   998         if p[1] == nullid:
  1000         if p[1] == nullid:
   999             p = p[:-1]
  1001             p = p[:-1]
  1000         return [changectx(self._repo, x) for x in p]
  1002         return [changectx(self._repo, x) for x in p]
  1001 
  1003 
  1002     def added(self):
       
  1003         return self._status[1]
       
  1004     def removed(self):
  1004     def removed(self):
  1005         return self._status[2]
  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):