phases: add a phase method to context
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Tue, 18 Oct 2011 18:25:53 +0200
changeset 15421 405ca90df2b1
parent 15420 e80d0d3198f0
child 15422 042e11c4e416
phases: add a phase method to context
mercurial/context.py
--- 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