##// END OF EJS Templates
commitablectx: move phase from workingctx
Sean Farley -
r19692:594f4d2b default
parent child Browse files
Show More
@@ -1006,6 +1006,12 b' class commitablectx(basectx):'
1006 1006 b.extend(p.bookmarks())
1007 1007 return b
1008 1008
1009 def phase(self):
1010 phase = phases.draft # default phase to draft
1011 for p in self.parents():
1012 phase = max(phase, p.phase())
1013 return phase
1014
1009 1015 class workingctx(commitablectx):
1010 1016 """A workingctx object makes access to data related to
1011 1017 the current working directory convenient.
@@ -1032,12 +1038,6 b' class workingctx(commitablectx):'
1032 1038 p = p[:-1]
1033 1039 return [changectx(self._repo, x) for x in p]
1034 1040
1035 def phase(self):
1036 phase = phases.draft # default phase to draft
1037 for p in self.parents():
1038 phase = max(phase, p.phase())
1039 return phase
1040
1041 1041 def hidden(self):
1042 1042 return False
1043 1043
General Comments 0
You need to be logged in to leave comments. Login now