equal
deleted
inserted
replaced
987 def clean(self): |
987 def clean(self): |
988 assert self._clean is not None # must call status first |
988 assert self._clean is not None # must call status first |
989 return self._clean |
989 return self._clean |
990 def branch(self): |
990 def branch(self): |
991 return encoding.tolocal(self._extra['branch']) |
991 return encoding.tolocal(self._extra['branch']) |
|
992 def closesbranch(self): |
|
993 return 'close' in self._extra |
992 |
994 |
993 class workingctx(commitablectx): |
995 class workingctx(commitablectx): |
994 """A workingctx object makes access to data related to |
996 """A workingctx object makes access to data related to |
995 the current working directory convenient. |
997 the current working directory convenient. |
996 date - any valid date string or (unixtime, offset), or None. |
998 date - any valid date string or (unixtime, offset), or None. |
1014 p = self._repo.dirstate.parents() |
1016 p = self._repo.dirstate.parents() |
1015 if p[1] == nullid: |
1017 if p[1] == nullid: |
1016 p = p[:-1] |
1018 p = p[:-1] |
1017 return [changectx(self._repo, x) for x in p] |
1019 return [changectx(self._repo, x) for x in p] |
1018 |
1020 |
1019 def closesbranch(self): |
|
1020 return 'close' in self._extra |
|
1021 def extra(self): |
1021 def extra(self): |
1022 return self._extra |
1022 return self._extra |
1023 |
1023 |
1024 def tags(self): |
1024 def tags(self): |
1025 t = [] |
1025 t = [] |