diff mercurial/context.py @ 13384:caa561759538

context: add method to return all bookmarks pointing to a node
author David Soria Parra <dsp@php.net>
date Fri, 11 Feb 2011 19:36:15 +0100
parents 6bf39d88c857
children 58c497d0e44d
line wrap: on
line diff
--- a/mercurial/context.py	Sun Feb 13 11:14:46 2011 +0100
+++ b/mercurial/context.py	Fri Feb 11 19:36:15 2011 +0100
@@ -114,6 +114,8 @@
         return self._changeset[5]
     def tags(self):
         return self._repo.nodetags(self._node)
+    def bookmarks(self):
+        return self._repo.nodebookmarks(self._node)
 
     def parents(self):
         """return contexts for each parent changeset"""