mercurial/context.py
changeset 19685 e4088cec976b
parent 19684 36cd2a7fa3f7
child 19686 e189c8ff33d3
equal deleted inserted replaced
19684:36cd2a7fa3f7 19685:e4088cec976b
   979     def deleted(self):
   979     def deleted(self):
   980         return self._status[3]
   980         return self._status[3]
   981     def unknown(self):
   981     def unknown(self):
   982         assert self._unknown is not None  # must call status first
   982         assert self._unknown is not None  # must call status first
   983         return self._unknown
   983         return self._unknown
       
   984     def ignored(self):
       
   985         assert self._ignored is not None  # must call status first
       
   986         return self._ignored
   984 
   987 
   985 class workingctx(commitablectx):
   988 class workingctx(commitablectx):
   986     """A workingctx object makes access to data related to
   989     """A workingctx object makes access to data related to
   987     the current working directory convenient.
   990     the current working directory convenient.
   988     date - any valid date string or (unixtime, offset), or None.
   991     date - any valid date string or (unixtime, offset), or None.
  1006         p = self._repo.dirstate.parents()
  1009         p = self._repo.dirstate.parents()
  1007         if p[1] == nullid:
  1010         if p[1] == nullid:
  1008             p = p[:-1]
  1011             p = p[:-1]
  1009         return [changectx(self._repo, x) for x in p]
  1012         return [changectx(self._repo, x) for x in p]
  1010 
  1013 
  1011     def ignored(self):
       
  1012         assert self._ignored is not None  # must call status first
       
  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
  1016         return self._clean
  1016         return self._clean
  1017     def branch(self):
  1017     def branch(self):
  1018         return encoding.tolocal(self._extra['branch'])
  1018         return encoding.tolocal(self._extra['branch'])