# HG changeset patch # User Kevin Bullock # Date 1298515620 21600 # Node ID b85a09f368bd4ca578b15beeab1f798ab2c5c522 # Parent c7bef25ca39300756a8f8bcf678f11db6c6ce257 workingctx: overload bookmarks() to return parents' bookmarks This implements workingctx.bookmarks() parallel to workingctx.tags(), overloading the implementation from changectx. diff -r c7bef25ca393 -r b85a09f368bd mercurial/context.py --- 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 []