# HG changeset patch # User Sean Farley # Date 2013-08-12 03:54:12 # Node ID 1c030c24e196458a20cd8dab05fece6e29b8cab3 # Parent e3c241c89350aea70c7893452140c940b5852f5a basefilectx: move files from filectx diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -497,6 +497,8 @@ class basefilectx(object): return self._changectx.user() def date(self): return self._changectx.date() + def files(self): + return self._changectx.files() class filectx(basefilectx): """A filecontext object makes access to data related to a particular @@ -553,8 +555,6 @@ class filectx(basefilectx): return filectx(self._repo, self._path, fileid=fileid, filelog=self._filelog) - def files(self): - return self._changectx.files() def description(self): return self._changectx.description() def branch(self):