From patchwork Mon Aug 12 16:27:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [28,of,41] basefilectx: move phasestr from filectx From: Sean Farley X-Patchwork-Id: 2156 Message-Id: To: mercurial-devel@selenic.com Date: Mon, 12 Aug 2013 11:27:24 -0500 # HG changeset patch # User Sean Farley # Date 1376279698 18000 # Sun Aug 11 22:54:58 2013 -0500 # Node ID eef0a657de2558d96ce814757166310692413274 # Parent c1f589ed0131c2b53e2ae56c02082aba9856a53d basefilectx: move phasestr from filectx diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -505,10 +505,12 @@ return self._changectx.branch() def extra(self): return self._changectx.extra() def phase(self): return self._changectx.phase() + def phasestr(self): + return self._changectx.phasestr() class filectx(basefilectx): """A filecontext object makes access to data related to a particular filerevision convenient.""" def __init__(self, repo, path, changeid=None, fileid=None, @@ -561,12 +563,10 @@ '''opens an arbitrary revision of the file without opening a new filelog''' return filectx(self._repo, self._path, fileid=fileid, filelog=self._filelog) - def phasestr(self): - return self._changectx.phasestr() def manifest(self): return self._changectx.manifest() def changectx(self): return self._changectx