Mercurial > hg
changeset 19554:98f8875f4baa
basectx: move phasestr from changectx
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Mon, 05 Aug 2013 18:19:04 -0500 |
parents | 64a99d972b9e |
children | 613b70fedc4e |
files | mercurial/context.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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):