equal
deleted
inserted
replaced
1010 phase = phases.draft # default phase to draft |
1010 phase = phases.draft # default phase to draft |
1011 for p in self.parents(): |
1011 for p in self.parents(): |
1012 phase = max(phase, p.phase()) |
1012 phase = max(phase, p.phase()) |
1013 return phase |
1013 return phase |
1014 |
1014 |
|
1015 def hidden(self): |
|
1016 return False |
|
1017 |
1015 class workingctx(commitablectx): |
1018 class workingctx(commitablectx): |
1016 """A workingctx object makes access to data related to |
1019 """A workingctx object makes access to data related to |
1017 the current working directory convenient. |
1020 the current working directory convenient. |
1018 date - any valid date string or (unixtime, offset), or None. |
1021 date - any valid date string or (unixtime, offset), or None. |
1019 user - username string, or None. |
1022 user - username string, or None. |
1035 def _parents(self): |
1038 def _parents(self): |
1036 p = self._repo.dirstate.parents() |
1039 p = self._repo.dirstate.parents() |
1037 if p[1] == nullid: |
1040 if p[1] == nullid: |
1038 p = p[:-1] |
1041 p = p[:-1] |
1039 return [changectx(self._repo, x) for x in p] |
1042 return [changectx(self._repo, x) for x in p] |
1040 |
|
1041 def hidden(self): |
|
1042 return False |
|
1043 |
1043 |
1044 def children(self): |
1044 def children(self): |
1045 return [] |
1045 return [] |
1046 |
1046 |
1047 def flags(self, path): |
1047 def flags(self, path): |