mercurial/context.py
changeset 15822 d523b6e7ad26
parent 15818 57241845a4bb
child 15869 e5feebc1f3bb
--- a/mercurial/context.py	Wed Jan 04 01:02:16 2012 +0100
+++ b/mercurial/context.py	Thu Dec 29 04:40:09 2011 +0100
@@ -124,6 +124,8 @@
             # outdated cache
             del self._repo._phaserev
         return self._repo._phaserev[self._rev]
+    def phasestr(self):
+        return phases.phasenames[self.phase()]
     def mutable(self):
         return self._repo._phaserev[self._rev] > phases.public
     def hidden(self):