mercurial/context.py
changeset 19684 36cd2a7fa3f7
parent 19683 6336f35ed77d
child 19685 e4088cec976b
equal deleted inserted replaced
19683:6336f35ed77d 19684:36cd2a7fa3f7
   976         return self._status[1]
   976         return self._status[1]
   977     def removed(self):
   977     def removed(self):
   978         return self._status[2]
   978         return self._status[2]
   979     def deleted(self):
   979     def deleted(self):
   980         return self._status[3]
   980         return self._status[3]
       
   981     def unknown(self):
       
   982         assert self._unknown is not None  # must call status first
       
   983         return self._unknown
   981 
   984 
   982 class workingctx(commitablectx):
   985 class workingctx(commitablectx):
   983     """A workingctx object makes access to data related to
   986     """A workingctx object makes access to data related to
   984     the current working directory convenient.
   987     the current working directory convenient.
   985     date - any valid date string or (unixtime, offset), or None.
   988     date - any valid date string or (unixtime, offset), or None.
  1003         p = self._repo.dirstate.parents()
  1006         p = self._repo.dirstate.parents()
  1004         if p[1] == nullid:
  1007         if p[1] == nullid:
  1005             p = p[:-1]
  1008             p = p[:-1]
  1006         return [changectx(self._repo, x) for x in p]
  1009         return [changectx(self._repo, x) for x in p]
  1007 
  1010 
  1008     def unknown(self):
       
  1009         assert self._unknown is not None  # must call status first
       
  1010         return self._unknown
       
  1011     def ignored(self):
  1011     def ignored(self):
  1012         assert self._ignored is not None  # must call status first
  1012         assert self._ignored is not None  # must call status first
  1013         return self._ignored
  1013         return self._ignored
  1014     def clean(self):
  1014     def clean(self):
  1015         assert self._clean is not None  # must call status first
  1015         assert self._clean is not None  # must call status first