changeset 19601:f284907631f5

basefilectx: move changectx from filectx
author Sean Farley <sean.michael.farley@gmail.com>
date Sun, 11 Aug 2013 22:56:02 -0500
parents 12cdff44fdc4
children 018ee491a6be
files mercurial/context.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Sun Aug 11 22:55:09 2013 -0500
+++ b/mercurial/context.py	Sun Aug 11 22:56:02 2013 -0500
@@ -511,6 +511,8 @@
         return self._changectx.phasestr()
     def manifest(self):
         return self._changectx.manifest()
+    def changectx(self):
+        return self._changectx
 
 class filectx(basefilectx):
     """A filecontext object makes access to data related to a particular
@@ -567,9 +569,6 @@
         return filectx(self._repo, self._path, fileid=fileid,
                        filelog=self._filelog)
 
-    def changectx(self):
-        return self._changectx
-
     def data(self):
         return self._filelog.read(self._filenode)
     def path(self):