Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/context.py @ 13476:b85a09f368bd stable
workingctx: overload bookmarks() to return parents' bookmarks
This implements workingctx.bookmarks() parallel to workingctx.tags(),
overloading the implementation from changectx.
author | Kevin Bullock <kbullock@ringworld.org> |
---|---|
date | Wed, 23 Feb 2011 20:47:00 -0600 |
parents | d100702326d5 |
children | 4eb1e9d6a7c9 |
comparison
equal
deleted
inserted
replaced
13475:c7bef25ca393 | 13476:b85a09f368bd |
---|---|
727 def tags(self): | 727 def tags(self): |
728 t = [] | 728 t = [] |
729 for p in self.parents(): | 729 for p in self.parents(): |
730 t.extend(p.tags()) | 730 t.extend(p.tags()) |
731 return t | 731 return t |
732 | |
733 def bookmarks(self): | |
734 b = [] | |
735 for p in self.parents(): | |
736 b.extend(p.bookmarks()) | |
737 return b | |
732 | 738 |
733 def children(self): | 739 def children(self): |
734 return [] | 740 return [] |
735 | 741 |
736 def flags(self, path): | 742 def flags(self, path): |