Show More
@@ -114,6 +114,8 b' class changectx(object):' | |||
|
114 | 114 | return self._changeset[5] |
|
115 | 115 | def tags(self): |
|
116 | 116 | return self._repo.nodetags(self._node) |
|
117 | def bookmarks(self): | |
|
118 | return self._repo.nodebookmarks(self._node) | |
|
117 | 119 | |
|
118 | 120 | def parents(self): |
|
119 | 121 | """return contexts for each parent changeset""" |
@@ -399,6 +399,13 b' class localrepository(repo.repository):' | |||
|
399 | 399 | tags.sort() |
|
400 | 400 | return self.nodetagscache.get(node, []) |
|
401 | 401 | |
|
402 | def nodebookmarks(self, node): | |
|
403 | marks = [] | |
|
404 | for bookmark, n in self._bookmarks.iteritems(): | |
|
405 | if n == node: | |
|
406 | marks.append(bookmark) | |
|
407 | return sorted(marks) | |
|
408 | ||
|
402 | 409 | def _branchtags(self, partial, lrev): |
|
403 | 410 | # TODO: rename this function? |
|
404 | 411 | tiprev = len(self) - 1 |
General Comments 0
You need to be logged in to leave comments.
Login now