workingctx: overload bookmarks() to return parents' bookmarks
This implements workingctx.bookmarks() parallel to workingctx.tags(),
overloading the implementation from changectx.
--- a/mercurial/context.py Fri Feb 25 12:32:15 2011 +0100
+++ b/mercurial/context.py Wed Feb 23 20:47:00 2011 -0600
@@ -730,6 +730,12 @@
t.extend(p.tags())
return t
+ def bookmarks(self):
+ b = []
+ for p in self.parents():
+ b.extend(p.bookmarks())
+ return b
+
def children(self):
return []