basefilectx: move files from filectx
authorSean Farley <sean.michael.farley@gmail.com>
Sun, 11 Aug 2013 22:54:12 -0500
changeset 19594 1c030c24e196
parent 19593 e3c241c89350
child 19595 bb6fd06975a6
basefilectx: move files from filectx
mercurial/context.py
--- a/mercurial/context.py	Sun Aug 11 22:53:56 2013 -0500
+++ b/mercurial/context.py	Sun Aug 11 22:54:12 2013 -0500
@@ -497,6 +497,8 @@
         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 @@
         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):