equal
deleted
inserted
replaced
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): |
984 def ignored(self): |
985 assert self._ignored is not None # must call status first |
985 assert self._ignored is not None # must call status first |
986 return self._ignored |
986 return self._ignored |
|
987 def clean(self): |
|
988 assert self._clean is not None # must call status first |
|
989 return self._clean |
987 |
990 |
988 class workingctx(commitablectx): |
991 class workingctx(commitablectx): |
989 """A workingctx object makes access to data related to |
992 """A workingctx object makes access to data related to |
990 the current working directory convenient. |
993 the current working directory convenient. |
991 date - any valid date string or (unixtime, offset), or None. |
994 date - any valid date string or (unixtime, offset), or None. |
1009 p = self._repo.dirstate.parents() |
1012 p = self._repo.dirstate.parents() |
1010 if p[1] == nullid: |
1013 if p[1] == nullid: |
1011 p = p[:-1] |
1014 p = p[:-1] |
1012 return [changectx(self._repo, x) for x in p] |
1015 return [changectx(self._repo, x) for x in p] |
1013 |
1016 |
1014 def clean(self): |
|
1015 assert self._clean is not None # must call status first |
|
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']) |
1019 def closesbranch(self): |
1019 def closesbranch(self): |
1020 return 'close' in self._extra |
1020 return 'close' in self._extra |
1021 def extra(self): |
1021 def extra(self): |