From patchwork Mon Aug 12 16:27:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [22,of,41] basefilectx: move date from filectx From: Sean Farley X-Patchwork-Id: 2149 Message-Id: To: mercurial-devel@selenic.com Date: Mon, 12 Aug 2013 11:27:18 -0500 # HG changeset patch # User Sean Farley # Date 1376279636 18000 # Sun Aug 11 22:53:56 2013 -0500 # Node ID bd322587bb2c1d432d27dc051ca10cbe06482ea4 # Parent 2306e9d27dab380b18e26683f45d04e90d96bd66 basefilectx: move date from filectx diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -493,10 +493,12 @@ return self._changectx.node() def hex(self): return self._changectx.hex() def user(self): return self._changectx.user() + def date(self): + return self._changectx.date() 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, @@ -549,12 +551,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 date(self): - return self._changectx.date() def files(self): return self._changectx.files() def description(self): return self._changectx.description() def branch(self):