equal
deleted
inserted
replaced
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): |
977 def removed(self): |
978 return self._status[2] |
978 return self._status[2] |
|
979 def deleted(self): |
|
980 return self._status[3] |
979 |
981 |
980 class workingctx(commitablectx): |
982 class workingctx(commitablectx): |
981 """A workingctx object makes access to data related to |
983 """A workingctx object makes access to data related to |
982 the current working directory convenient. |
984 the current working directory convenient. |
983 date - any valid date string or (unixtime, offset), or None. |
985 date - any valid date string or (unixtime, offset), or None. |
1001 p = self._repo.dirstate.parents() |
1003 p = self._repo.dirstate.parents() |
1002 if p[1] == nullid: |
1004 if p[1] == nullid: |
1003 p = p[:-1] |
1005 p = p[:-1] |
1004 return [changectx(self._repo, x) for x in p] |
1006 return [changectx(self._repo, x) for x in p] |
1005 |
1007 |
1006 def deleted(self): |
|
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 |
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 |