##// END OF EJS Templates
commitablectx: move bookmarks from workingctx
Sean Farley -
r19691:33ae2052 default
parent child Browse files
Show More
@@ -1000,6 +1000,12 b' class commitablectx(basectx):'
1000 t.extend(p.tags())
1000 t.extend(p.tags())
1001 return t
1001 return t
1002
1002
1003 def bookmarks(self):
1004 b = []
1005 for p in self.parents():
1006 b.extend(p.bookmarks())
1007 return b
1008
1003 class workingctx(commitablectx):
1009 class workingctx(commitablectx):
1004 """A workingctx object makes access to data related to
1010 """A workingctx object makes access to data related to
1005 the current working directory convenient.
1011 the current working directory convenient.
@@ -1026,12 +1032,6 b' class workingctx(commitablectx):'
1026 p = p[:-1]
1032 p = p[:-1]
1027 return [changectx(self._repo, x) for x in p]
1033 return [changectx(self._repo, x) for x in p]
1028
1034
1029 def bookmarks(self):
1030 b = []
1031 for p in self.parents():
1032 b.extend(p.bookmarks())
1033 return b
1034
1035 def phase(self):
1035 def phase(self):
1036 phase = phases.draft # default phase to draft
1036 phase = phases.draft # default phase to draft
1037 for p in self.parents():
1037 for p in self.parents():
General Comments 0
You need to be logged in to leave comments. Login now