basectx: move phasestr from changectx
authorSean Farley <sean.michael.farley@gmail.com>
Mon, 05 Aug 2013 18:19:04 -0500
changeset 19554 98f8875f4baa
parent 19553 64a99d972b9e
child 19555 613b70fedc4e
basectx: move phasestr from changectx
mercurial/context.py
--- a/mercurial/context.py	Mon Aug 05 17:22:49 2013 -0500
+++ b/mercurial/context.py	Mon Aug 05 18:19:04 2013 -0500
@@ -75,6 +75,8 @@
         return hex(self.node())
     def manifest(self):
         return self._manifest
+    def phasestr(self):
+        return phases.phasenames[self.phase()]
 
 class changectx(basectx):
     """A changecontext object makes access to data related to a particular
@@ -234,8 +236,6 @@
         return self._repo.nodebookmarks(self._node)
     def phase(self):
         return self._repo._phasecache.phase(self._repo, self._rev)
-    def phasestr(self):
-        return phases.phasenames[self.phase()]
     def mutable(self):
         return self.phase() > phases.public
     def hidden(self):