basefilectx: move path from filectx
authorSean Farley <sean.michael.farley@gmail.com>
Sun, 11 Aug 2013 22:56:18 -0500
changeset 19602 018ee491a6be
parent 19601 f284907631f5
child 19603 a92302f48a56
basefilectx: move path from filectx
mercurial/context.py
--- a/mercurial/context.py	Sun Aug 11 22:56:02 2013 -0500
+++ b/mercurial/context.py	Sun Aug 11 22:56:18 2013 -0500
@@ -514,6 +514,9 @@
     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."""
@@ -571,8 +574,6 @@
 
     def data(self):
         return self._filelog.read(self._filenode)
-    def path(self):
-        return self._path
     def size(self):
         return self._filelog.size(self._filerev)