changeset 15421:405ca90df2b1

phases: add a phase method to context
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Tue, 18 Oct 2011 18:25:53 +0200
parents e80d0d3198f0
children 042e11c4e416
files mercurial/context.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Fri Nov 04 00:20:20 2011 +0100
+++ b/mercurial/context.py	Tue Oct 18 18:25:53 2011 +0200
@@ -117,6 +117,8 @@
         return self._repo.nodetags(self._node)
     def bookmarks(self):
         return self._repo.nodebookmarks(self._node)
+    def phase(self):
+        return self._repo._phaserev[self._rev]
     def hidden(self):
         return self._rev in self._repo.changelog.hiddenrevs