changeset 14644:f3a40fd7008c

hidden: Add ``hidden`` method for context
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Thu, 16 Jun 2011 01:57:59 +0200
parents 7e295dd10d40
children e4cfdff6d3f4
files mercurial/context.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Thu Jun 16 01:57:53 2011 +0200
+++ b/mercurial/context.py	Thu Jun 16 01:57:59 2011 +0200
@@ -116,6 +116,8 @@
         return self._repo.nodetags(self._node)
     def bookmarks(self):
         return self._repo.nodebookmarks(self._node)
+    def hidden(self):
+        return self._rev in self._repo.changelog.hiddenrevs
 
     def parents(self):
         """return contexts for each parent changeset"""