From patchwork Mon Aug 12 16:27:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [31,of,41] basefilectx: move path from filectx From: Sean Farley X-Patchwork-Id: 2157 Message-Id: <2eacec85b30a273d5f1b.1376324847@laptop.local> To: mercurial-devel@selenic.com Date: Mon, 12 Aug 2013 11:27:27 -0500 # HG changeset patch # User Sean Farley # Date 1376279778 18000 # Sun Aug 11 22:56:18 2013 -0500 # Node ID 2eacec85b30a273d5f1bbe2f322feb28273b6af0 # Parent fd088bd643f300091ca45961c81b88bafdf162eb basefilectx: move path from filectx diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -512,10 +512,13 @@ def manifest(self): return self._changectx.manifest() def changectx(self): return self._changectx + def path(self): + return self._path + 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, filelog=None, changectx=None): @@ -569,12 +572,10 @@ return filectx(self._repo, self._path, fileid=fileid, filelog=self._filelog) def data(self): return self._filelog.read(self._filenode) - def path(self): - return self._path def size(self): return self._filelog.size(self._filerev) def isbinary(self): try: