# HG changeset patch # User Pierre-Yves David # Date 2011-06-15 23:57:59 # Node ID f3a40fd7008ccdedf696795b20bad148613dca54 # Parent 7e295dd10d40a30aa84c99d864efce4baf38b23c hidden: Add ``hidden`` method for context diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -116,6 +116,8 @@ class changectx(object): 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"""